Shell: Settings has no list column, so its tab bar stays at the right edge
This commit is contained in:
@@ -180,8 +180,10 @@ class _AdaptiveShellState extends State<AdaptiveShell> {
|
||||
listenable: Listenable.merge([_bar.badges, _bar.bar, _paneWidths]),
|
||||
builder: (context, _) {
|
||||
// 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);
|
||||
// item is open (Search, a list alone), so it never jumps sides. A page
|
||||
// (Settings) has no list column, so its bar stays at the right edge.
|
||||
final split =
|
||||
_bar.split(_selected) || (!page && showsListBesideDetail(context));
|
||||
return ListPaneWidth(
|
||||
split: split,
|
||||
preferredWidth: _paneWidths.widthFor(_selected.name),
|
||||
|
||||
Reference in New Issue
Block a user