We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47f43a4 commit 44d6694Copy full SHA for 44d6694
packages/go_router/example/lib/on_exit.dart
@@ -27,7 +27,6 @@ final GoRouter _router = GoRouter(
27
context: context,
28
builder: (_) {
29
return AlertDialog(
30
- title: const Text('Confirm'),
31
content: const Text('Are you sure to leave this page?'),
32
actions: <Widget>[
33
TextButton(
packages/go_router/example/test/on_exit_test.dart
@@ -24,6 +24,7 @@ void main() {
24
await tester.tap(find.byType(BackButton));
25
await tester.pumpAndSettle();
26
+ expect(find.text('Are you sure to leave this page?'), findsOneWidget);
await tester.tap(find.text('Confirm'));
expect(find.byType(example.HomeScreen), findsOneWidget);
0 commit comments