Add phone bottom navigation bar
Replace the narrow-layout floating destination pill with a full-width Material 3 NavigationBar. Reuse the shell destination model and badge wiring while preserving re-selection callbacks and hiding the bar for keyboard/detail states.
This commit is contained in:
@@ -24,8 +24,10 @@ void main() {
|
||||
);
|
||||
expect(find.text('Pipelines'), findsWidgets);
|
||||
expect(find.text('Pipelines — Not implemented'), findsOneWidget);
|
||||
// One floating tab bar at every width; no rail.
|
||||
expect(find.byType(FloatingDestinationBar), findsOneWidget);
|
||||
// This shell reads its width from a MediaQuery of zero size, so it lays
|
||||
// out as a phone at every test width: the navigation bar, no rail.
|
||||
expect(find.byType(NavigationBar), findsOneWidget);
|
||||
expect(find.byType(FloatingDestinationBar), findsNothing);
|
||||
expect(find.byType(NavigationRail), findsNothing);
|
||||
expect(tester.takeException(), isNull);
|
||||
await tester.tap(find.byKey(const ValueKey('shell.destination.runs')));
|
||||
|
||||
Reference in New Issue
Block a user