@umop, can you keep the _treeView.focus() above, and change this method to:
```
void show() {
    _dialogElement.toggle();
    Timer.run(() => _dialogElement.applyFocus());
  }
```

I think that'll solve both problems.