Support compact and hidden list panes in the shell
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user