Float glass tab bars everywhere the app has bottom tabs
One floating frosted tab bar (host NavigationBar / CupertinoTabBar in the shared GlassPill) replaces the NavigationRail, the Cupertino sidebar and the run detail, stage page and pipeline detail tab strips. Below 600px it spans the width minus 16px margins; wider it is sized to its tabs at the right edge. Content keeps the full width, scrolls behind the bar and learns its height as bottom media padding; lists pad their end clear of it and FABs sit above it. The bar now sizes itself from its own constraints instead of the screen size, which fixes the widget_test failure where a MediaQuery without a size gave it negative width constraints.
This commit is contained in:
@@ -31,7 +31,7 @@ pill on the page's own background) is now the app's only top bar.
|
||||
`BackdropFilter` blur, sigma 16, clipped to the shape; fill
|
||||
`surfaceContainerHigh` / `systemGrey6` at 72%; hairline `outlineVariant` /
|
||||
`separator` border). Under `MediaQuery.highContrast` the fill is solid and
|
||||
nothing blurs. Intended for the floating tab bar follow-up too.
|
||||
nothing blurs. Also the floating tab bars' pill (`notes/floating-tab-bars.md`).
|
||||
- `segmented_bar_overlay.dart` — `SegmentedBarOverlay(bar:, child:)`: floats a
|
||||
bar over content outside a scaffold (like `extendBodyBehindAppBar`), giving
|
||||
the content the bar's measured height as `MediaQuery.paddingOf(context).top`.
|
||||
@@ -49,7 +49,7 @@ pill on the page's own background) is now the app's only top bar.
|
||||
schedules bodies gained a top-only `SafeArea`). They show the new bar but
|
||||
their content does not yet scroll behind it — each list has its own fixed
|
||||
padding/headers and needs a per-screen change to consume the media padding.
|
||||
- The bottom tab bar is unchanged (floating tab bars are a separate change).
|
||||
- Bottom tab bars float too: see `notes/floating-tab-bars.md`.
|
||||
|
||||
## Converted
|
||||
|
||||
|
||||
Reference in New Issue
Block a user