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
+5
View File
@@ -19,6 +19,7 @@ class ShellBarSpec {
this.onBack,
this.actions = const [],
this.barless = false,
this.hideNavigation = false,
this.titleWidget,
this.titleWidgetMaxWidth = double.infinity,
this.backgroundColor,
@@ -52,6 +53,7 @@ class ShellBarSpec {
/// The content draws its own floating bar: a detail page shows no bar of
/// its own and lets the content reach the top edge.
final bool barless;
final bool hideNavigation;
}
/// The bar contents each tab's open screen has published.
@@ -190,6 +192,7 @@ class ShellBar extends StatefulWidget {
this.actions = const [],
this.active = true,
this.barless = false,
this.hideNavigation = false,
this.titleWidget,
this.titleWidgetMaxWidth = double.infinity,
this.backgroundColor,
@@ -205,6 +208,7 @@ class ShellBar extends StatefulWidget {
/// See [ShellBarSpec.barless].
final bool barless;
final bool hideNavigation;
/// False while the screen is kept mounted but hidden (a list under an open
/// detail): it then gives the bar up.
@@ -264,6 +268,7 @@ class _ShellBarState extends State<ShellBar> {
onBack: widget.onBack,
actions: widget.actions,
barless: widget.barless,
hideNavigation: widget.hideNavigation,
titleWidget: widget.titleWidget,
titleWidgetMaxWidth: widget.titleWidgetMaxWidth,
backgroundColor: widget.backgroundColor,