Show each floating tab as its own round glass button

Replace the single glass pill (host NavigationBar/CupertinoTabBar with one
gliding highlight) with a row of separate circular GlassPill buttons, 52/50 px
with 12/10 px gaps, at the same bottom-right place. The selected button fills
with the host selection tint and cross-fades; each button pops in on its own,
staggered, only when the bar appears or its tabs change; presses sink like the
top bar's. Tab semantics, keys, tooltips and badges are kept; the row shares
one BackdropGroup for its blurs.
This commit is contained in:
2026-11-02 18:43:05 +00:00
parent 37b67c84df
commit 377ff04aaf
24 changed files with 916 additions and 1003 deletions
@@ -6,7 +6,6 @@ import 'package:pipelines_app/shell/destination.dart';
import 'package:pipelines_app/shell/list_detail.dart';
import 'package:pipelines_app/ui/adaptive/floating_bar_layout.dart';
import 'package:pipelines_app/ui/adaptive/floating_destination_bar.dart';
import 'package:pipelines_app/ui/adaptive/glass_pill.dart';
/// While a tab shows its list beside an open item, the shell's destination
/// bar keeps its place at the bottom right (near the thumb). The item's own
@@ -101,7 +100,7 @@ void main() {
find
.ancestor(
of: find.byKey(const ValueKey('shell.destination.chat')).first,
matching: find.byType(GlassPill),
matching: find.byKey(FloatingDestinationBar.rowKey),
)
.first,
);
@@ -160,7 +159,7 @@ void main() {
find
.descendant(
of: find.byKey(const Key('detail-tabs')),
matching: find.byType(GlassPill),
matching: find.byKey(FloatingDestinationBar.rowKey),
)
.first,
);
@@ -200,7 +199,7 @@ void main() {
final pill = destinationPill(tester);
expect(
pill.width,
FloatingDestinationBar.pillWidth(cupertino: cupertino, tabs: 4),
FloatingDestinationBar.rowWidth(cupertino: cupertino, tabs: 4),
);
expect(pill.right, closeTo(390 - kFloatingBarMargin, 0.5));
});