Compact floating tab bars with circular selection and equal edge gaps

The floating tab bar is now sized to its icon tabs at the bottom right on
every width, the selected icon sits in a tinted circle on both hosts, and
the gap from each outer circle to the pill's sides equals the gap to its
top, bottom and neighbours.
This commit is contained in:
2026-10-31 16:53:24 +00:00
parent 4235cd858f
commit 44ea45150f
9 changed files with 430 additions and 78 deletions
+6 -1
View File
@@ -90,7 +90,12 @@ void main() {
of: find.byType(FloatingDestinationBar),
matching: find.byType(GlassPill),
);
expect(tester.getSize(destinationPill).width, 358);
// Sized to its four tabs at the bottom right.
expect(
tester.getSize(destinationPill).width,
FloatingDestinationBar.pillWidth(cupertino: cupertino, tabs: 4),
);
expect(tester.getRect(destinationPill).right, 390 - 16);
await tester.tap(find.byKey(const ValueKey('shell.destination.chat')));
await tester.pump();
expect(find.text('Chat — Not implemented'), findsOneWidget);