Keep phone pages and window pages for turn changes and shell history

A dialog only in the tiled app on a wide layout: a phone keeps its
full-screen page (run 304 had turned it into a sheet and rewritten the
tests), and a floating window opens it as a page of that window so a diff
or command output it opens stays in the window.
This commit is contained in:
2026-11-10 22:56:32 +00:00
parent 122c849281
commit 3a0577cba0
4 changed files with 67 additions and 11 deletions
@@ -160,7 +160,7 @@ void main() {
expect(find.textContaining('truncated'), findsWidgets);
});
testWidgets('a narrow window opens the changes as a bottom sheet ($host)', (
testWidgets('a phone opens the changes full screen ($host)', (
tester,
) async {
tester.view.physicalSize = const Size(400, 800);
@@ -180,7 +180,9 @@ void main() {
);
await tester.tap(_chip);
await tester.pumpAndSettle();
expect(find.byType(BottomSheet), findsOneWidget);
expect(find.byType(BottomSheet), findsNothing);
expect(find.byType(Dialog), findsNothing);
expect(find.text('Turn changes'), findsOneWidget);
expect(find.text('lib/a.dart'), findsOneWidget);
});