Preserve stock Navigator Back for native phone chat panes

This commit is contained in:
2026-11-06 21:49:11 +00:00
parent 2cadebab4b
commit be6c6a471a
4 changed files with 14 additions and 1 deletions
@@ -127,6 +127,12 @@ void main() {
await tester.tap(find.text('Chat a').first);
await tester.pumpAndSettle();
expect(find.byTooltip('Back').hitTestable(), findsOneWidget);
expect(
tester
.widget<BackButton>(find.byType(BackButton).hitTestable())
.onPressed,
isNull,
);
final stateA = tester.state(_thread('a'));
await tester.enterText(_input('a'), 'Phone draft A');
await tester.pumpAndSettle();