Shell: Settings has no list column, so its tab bar stays at the right edge

This commit is contained in:
2026-11-03 17:34:42 +00:00
parent fb3987ef4e
commit 43d6135df3
2 changed files with 18 additions and 3 deletions
+4 -2
View File
@@ -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),