Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
54e1576
Add ShellRoute support to go_router_builder
johnpryan Feb 22, 2023
a52bad2
Fix analysis issues
johnpryan Feb 23, 2023
9797546
Fix go_router_builder test
johnpryan Feb 23, 2023
dadb98f
format
johnpryan Feb 23, 2023
2df6775
Increment minor version
johnpryan Feb 23, 2023
b7441ed
ignore deprected member use so downgraded_analyze step passes
johnpryan Feb 23, 2023
5633d15
Revert old TODO
johnpryan Feb 23, 2023
be0a39f
Skip extensions for ShellRoute
johnpryan Feb 23, 2023
6ed5535
Add GoRouterShellGenerator
GP4cK Mar 10, 2023
ce95e76
Add example
GP4cK Mar 10, 2023
bfa3c2f
Merge branch 'main' into feature/shell-route-go-router-builder
GP4cK Mar 10, 2023
1e2606f
Lint shell example
GP4cK Mar 10, 2023
632bf68
Merge branch 'main' into feature/shell-route-go-router-builder
GP4cK Mar 11, 2023
548882a
Revert changes on example/main.dart
GP4cK Mar 11, 2023
7b1305b
Re-run build_runner after merge
GP4cK Mar 11, 2023
75bff09
Fix go_router_builder test
GP4cK Mar 11, 2023
76b9b81
Combine generators
GP4cK Mar 11, 2023
7694e5a
Merge branch 'main' into feature/shell-route-go-router-builder
GP4cK Mar 11, 2023
4600f37
Use element instead of element2
GP4cK Mar 14, 2023
3efeecd
Removed commented import
GP4cK Mar 14, 2023
fb449ff
Add test on shell_route_example
GP4cK Mar 14, 2023
f0924ed
Remove useless comment
GP4cK Mar 14, 2023
6eab717
Fix navigatorKey vs parentNavigatorKey
GP4cK Mar 14, 2023
9f8b067
Ignore deprecation warning
GP4cK Mar 15, 2023
7f4c6e0
Combine GoRouteGenerator to generate a single $appRoutes
GP4cK Mar 16, 2023
0e48f2a
Merge branch 'main' into feature/shell-route-go-router-builder
GP4cK Mar 17, 2023
b08bc6d
Fix builder test after merge
GP4cK Mar 17, 2023
4c08623
Merge branch 'flutter:main' into feature/shell-route-go-router-builder
GP4cK Apr 1, 2023
61c3d9d
Use $navigatorKey / $parentNavigatorKey
GP4cK Apr 4, 2023
3013a05
Add example of navigation with keys
GP4cK Apr 4, 2023
3376c73
Add section about navigator keys in README
GP4cK Apr 4, 2023
219f261
Merge branch 'main' into feature/shell-route-go-router-builder
GP4cK Apr 4, 2023
1832753
Fix linter errors
GP4cK Apr 4, 2023
d7752fd
Add link to example
GP4cK Apr 5, 2023
28e593f
Test shell_route_with_keys_example
GP4cK Apr 5, 2023
6b4ccf1
Merge branch 'main' into feature/shell-route-go-router-builder
GP4cK Apr 5, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Test shell_route_with_keys_example
  • Loading branch information
GP4cK committed Apr 5, 2023
commit 28e593f917696da42a0e0169b247796a464f6b30
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:go_router_builder_example/shell_route_with_keys_example.dart';

void main() {
testWidgets('Navigate from /home to /users', (WidgetTester tester) async {
await tester.pumpWidget(App());
expect(find.text('The home page'), findsOneWidget);

await tester.tap(find.byIcon(Icons.group));
await tester.pumpAndSettle();
expect(find.byType(ListTile), findsNWidgets(3));
});
}