feat(app): an open pipeline, run or chat fills a phone screen; Back steps up one level; stage tabs end with Session

This commit is contained in:
2026-10-23 22:49:21 +01:00
parent dd324d1f92
commit 0e6db03903
9 changed files with 104 additions and 108 deletions
+19
View File
@@ -99,4 +99,23 @@ void main() {
findsNothing,
);
});
testWidgets('an open detail fills a phone screen without the tab bar', (
tester,
) async {
tester.view.physicalSize = const Size(390, 844);
tester.view.devicePixelRatio = 1;
addTearDown(tester.view.reset);
Widget shell({required bool detail}) => MaterialApp(
home: AdaptiveShell(
destination: AppDestination.runs,
detailOpen: detail,
destinationBodies: {AppDestination.runs: (_) => const Text('runs')},
),
);
await tester.pumpWidget(shell(detail: false));
expect(find.byType(NavigationBar), findsOneWidget);
await tester.pumpWidget(shell(detail: true));
expect(find.byType(NavigationBar), findsNothing);
});
}