feat(app): segmented glass top bar across the app

Extract the chat's segmented bar into lib/ui/adaptive (SegmentedBar,
GlassPill, SegmentedBarOverlay) and use it for the shell bar, DetailPane
and every page-level bar. Pieces are frosted glass over a fading scrim;
only pills take taps. Actions keep their natural width so the title gives
way before a model name. The chat transcript scrolls behind its header.
This commit is contained in:
2026-10-31 00:21:27 +00:00
parent 4a85a12cf7
commit 0582bfc34f
42 changed files with 1391 additions and 571 deletions
+4 -2
View File
@@ -1,6 +1,7 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import '../../ui/adaptive/segmented_bar.dart';
import '../../core/api_gateway.dart';
import '../../ui/adaptive/host.dart';
import 'data/search_repository.dart';
@@ -132,7 +133,8 @@ class _SearchScreenState extends State<SearchScreen> {
);
if (widget.embedded) return body;
return Scaffold(
appBar: AppBar(title: const Text('Search')),
extendBodyBehindAppBar: true,
appBar: const SegmentedBar(cupertino: false, title: 'Search'),
body: body,
);
}
@@ -203,7 +205,7 @@ class _SearchScreenState extends State<SearchScreen> {
);
if (widget.embedded) return body;
return CupertinoPageScaffold(
navigationBar: const CupertinoNavigationBar(middle: Text('Search')),
navigationBar: const SegmentedBar(cupertino: true, title: 'Search'),
child: body,
);
}