Close the chrome gaps: content behind bars on Templates, run detail, stage page and Schedules; Search field fills the bar
- SegmentedBar.titleWidget (and ShellBar/ShellBarSpec titleWidget, backgroundColor): a bar's main pill can be an input in place of the title; Search uses it so the field fills the bar with Kind and info, capped at the result column width so field and results share edges on wide windows. - Templates page/frame drop the top SafeArea again (BelowTopBar gate, TopBarNotices banners); Cupertino uses the grouped background. - Settings on Cupertino in the shell publishes the grouped background so the bar scrim matches the page (no white band or seam). - TopGlassStrip: the run detail header (status, actions, decision, notices) and the Schedules search/filter toolbar float as glass under the bar; tabs and lists scroll behind both. - Stage page: stage title and Visit/Run subtitle in the bar, facts lead the Summary scroll, sections scroll behind the bar under floating tabs. - Tests for content-behind-bar on each page and the title-widget bar mode; notes/chrome-gaps-fixes.md.
This commit is contained in:
@@ -211,6 +211,9 @@ class _AdaptiveShellState extends State<AdaptiveShell> {
|
||||
onPressed: onBack,
|
||||
),
|
||||
title: spec?.title ?? label,
|
||||
titleWidget: spec?.titleWidget,
|
||||
titleWidgetMaxWidth: spec?.titleWidgetMaxWidth ?? double.infinity,
|
||||
backgroundColor: spec?.backgroundColor,
|
||||
subtitle: spec?.subtitle,
|
||||
subtitleIcon: spec?.subtitleIcon,
|
||||
onTitlePressed: spec?.onTitlePressed,
|
||||
@@ -228,7 +231,9 @@ class _AdaptiveShellState extends State<AdaptiveShell> {
|
||||
],
|
||||
),
|
||||
)
|
||||
else if (onSearch != null)
|
||||
// A screen whose main pill is its own field (Search) needs no
|
||||
// separate Search action.
|
||||
else if (onSearch != null && spec?.titleWidget == null)
|
||||
cupertino
|
||||
? CupertinoButton(
|
||||
key: const ValueKey('shell.search'),
|
||||
|
||||
Reference in New Issue
Block a user