-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[go_router_builder] Add ShellRoute support to go_router_builder #3439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
auto-submit
merged 36 commits into
flutter:main
from
GP4cK:feature/shell-route-go-router-builder
Apr 5, 2023
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 a52bad2
Fix analysis issues
johnpryan 9797546
Fix go_router_builder test
johnpryan dadb98f
format
johnpryan 2df6775
Increment minor version
johnpryan b7441ed
ignore deprected member use so downgraded_analyze step passes
johnpryan 5633d15
Revert old TODO
johnpryan be0a39f
Skip extensions for ShellRoute
johnpryan 6ed5535
Add GoRouterShellGenerator
GP4cK ce95e76
Add example
GP4cK bfa3c2f
Merge branch 'main' into feature/shell-route-go-router-builder
GP4cK 1e2606f
Lint shell example
GP4cK 632bf68
Merge branch 'main' into feature/shell-route-go-router-builder
GP4cK 548882a
Revert changes on example/main.dart
GP4cK 7b1305b
Re-run build_runner after merge
GP4cK 75bff09
Fix go_router_builder test
GP4cK 76b9b81
Combine generators
GP4cK 7694e5a
Merge branch 'main' into feature/shell-route-go-router-builder
GP4cK 4600f37
Use element instead of element2
GP4cK 3efeecd
Removed commented import
GP4cK fb449ff
Add test on shell_route_example
GP4cK f0924ed
Remove useless comment
GP4cK 6eab717
Fix navigatorKey vs parentNavigatorKey
GP4cK 9f8b067
Ignore deprecation warning
GP4cK 7f4c6e0
Combine GoRouteGenerator to generate a single $appRoutes
GP4cK 0e48f2a
Merge branch 'main' into feature/shell-route-go-router-builder
GP4cK b08bc6d
Fix builder test after merge
GP4cK 4c08623
Merge branch 'flutter:main' into feature/shell-route-go-router-builder
GP4cK 61c3d9d
Use $navigatorKey / $parentNavigatorKey
GP4cK 3013a05
Add example of navigation with keys
GP4cK 3376c73
Add section about navigator keys in README
GP4cK 219f261
Merge branch 'main' into feature/shell-route-go-router-builder
GP4cK 1832753
Fix linter errors
GP4cK d7752fd
Add link to example
GP4cK 28e593f
Test shell_route_with_keys_example
GP4cK 6b4ccf1
Merge branch 'main' into feature/shell-route-go-router-builder
GP4cK File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In order to test this, I was thinking to do the same as in
packages/go_router_builder/test/builder_test.dartand use@ShouldGenerateto make sure we use the correct param name like so:go_router_builder/test/test_inputs/_shell_test_input.dart
However, if I do this, I have a warning on the first 2 imports that
flutteris not a dependency.What do you prefer?
flutterto devDependenciesThat code will never be executed. It's only here to be parsed by the builder as a test so I think 1 is ok.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just add an example in the example folder, and add a test for that example to make sure everything works correctly. We also have a test to ensure the .g.dart is always the latest code. So if someone breaks the route_config.dart either the example test will fail or the .g.dart test will fail.