Shell: on wide windows the tabs stay under the list column even with no item open
This commit is contained in:
@@ -166,7 +166,9 @@ class _AdaptiveShellState extends State<AdaptiveShell> {
|
||||
final bar = ListenableBuilder(
|
||||
listenable: Listenable.merge([_bar.badges, _bar.bar, _paneWidths]),
|
||||
builder: (context, _) {
|
||||
final split = _bar.split(_selected);
|
||||
// On a wide window the bar stays under the list column even when no
|
||||
// item is open (Search, a list alone), so it never jumps sides.
|
||||
final split = _bar.split(_selected) || showsListBesideDetail(context);
|
||||
return ListPaneWidth(
|
||||
split: split,
|
||||
preferredWidth: _paneWidths.widthFor(_selected.name),
|
||||
|
||||
Reference in New Issue
Block a user