fix(app): float content behind top bars and give each wide pane its own bar row

- Top-bar clearance helpers (withTopBarClearance, withBarClearance,
  SliverTopBarClearance, BelowTopBar, TopBarNotices); shell, DetailPane and
  the runs/pipelines/templates/artifacts/stage definition/filter/usage pages
  drop their top SafeArea and pad their own lists, pinned headers pin at the
  inset.
- Wide windows: the shell bar narrows to the list pane (ShellPaneSplit) and
  the open item's bar shares its row; item tabs float at the pane's top
  (PageTabsEdge) instead of stacking on the shell's tab bar; the floating
  tab pill no longer swells over leftover media padding.
- Pipeline detail is a DetailPane on wide too; Run/Runs move from FABs into
  the bar's actions; name and identity live in the title pill.
- Run detail title pill shows the real title with Run N, pipeline and
  version (the pill links to the pipeline); the body keeps only status,
  actions and notices; standalone detail draws the same segmented bar.
- One Runs tab badge: attention outranks running.
- Tests for content-behind-bar padding and the no-stacking wide layout;
  notes/app-chrome-fixes.md.
This commit is contained in:
2026-10-31 03:36:22 +00:00
parent ea0f22dfc7
commit c6c6dcfe18
49 changed files with 1791 additions and 693 deletions
@@ -1,6 +1,7 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import '../../../ui/adaptive/floating_bar_layout.dart';
import '../../../ui/adaptive/host.dart';
import '../domain/template_entry.dart';
@@ -52,7 +53,7 @@ class TemplateDetail extends StatelessWidget {
final cupertino = usesCupertinoHost(context);
return ListView(
key: templateDetailKey,
padding: const EdgeInsets.only(bottom: 24),
padding: withBarClearance(context, const EdgeInsets.only(bottom: 24)),
children: [
if (showBack) _backRow(context, cupertino),
Padding(
@@ -2,6 +2,7 @@ import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import '../../../ui/adaptive/segmented_bar.dart';
import '../../../shell/shell_bar.dart';
import '../../../ui/adaptive/host.dart';
const templatesRefreshKey = ValueKey<String>('templates-refresh');
@@ -11,7 +12,8 @@ const templatesBackKey = ValueKey<String>('templates-back');
///
/// Standalone use keeps the host's own app bar with Back and Refresh. A shell
/// that already owns navigation passes [embedded], which drops the bar and
/// keeps Refresh at the top of the body.
/// puts Refresh in the host's bar through `ShellBar` (or, without one,
/// keeps it at the top of the body).
class TemplatesFrame extends StatelessWidget {
const TemplatesFrame({
super.key,
@@ -39,6 +41,11 @@ class TemplatesFrame extends StatelessWidget {
}
Widget _embedded(BuildContext context) {
// A host page with a bar takes Refresh into it; the body then reaches
// its top edge and scrolls behind that bar.
if (ShellBar.available(context)) {
return ShellBar(actions: [_refreshButton(context)], child: body);
}
return Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
@@ -69,7 +76,7 @@ class TemplatesFrame extends StatelessWidget {
title: 'Templates',
actions: [_refreshButton(context)],
),
child: SafeArea(child: body),
child: SafeArea(top: false, bottom: false, child: body),
);
}
@@ -84,7 +91,7 @@ class TemplatesFrame extends StatelessWidget {
: null,
actions: [_refreshButton(context)],
),
body: SafeArea(child: body),
body: SafeArea(top: false, bottom: false, child: body),
);
}