Support compact and hidden list panes in the shell

This commit is contained in:
2026-11-06 19:11:28 +00:00
parent c4776657c8
commit 1106adbce2
3 changed files with 51 additions and 12 deletions
+3
View File
@@ -179,6 +179,9 @@ class _AdaptiveShellState extends State<AdaptiveShell> {
final bar = ListenableBuilder(
listenable: Listenable.merge([_bar.badges, _bar.bar, _paneWidths]),
builder: (context, _) {
if (_bar.specFor(_selected)?.hideNavigation ?? false) {
return const SizedBox.shrink();
}
// 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. A page
// (Settings) has no list column, so its bar stays at the right edge.