-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[go_router_builder] Support default value for Set, List and Iterable route parameters
#3391
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 10 commits into
flutter:main
from
ValentinVignal:go-router-builder/default-values-with-iterable-parameters
Mar 16, 2023
Merged
Changes from 6 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
05e4737
fix: Default value with iterable parameters
ValentinVignal 86f3526
docs: Update the example
ValentinVignal 542aad0
tests: Update the tests
ValentinVignal 8f04735
docs: Update version number
ValentinVignal 6b24e84
Merge branch 'main' into go-router-builder/default-values-with-iterab…
ValentinVignal 4b422b6
test: Add a test in example with default values
ValentinVignal cbfef9d
test: Add better tests
ValentinVignal d2fa8da
format: Add missing comma
ValentinVignal cb5fda1
Merge remote-tracking branch 'upstream/main' into go-router-builder/d…
ValentinVignal d890d3f
Merge remote-tracking branch 'upstream/main' into go-router-builder/d…
ValentinVignal 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
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
118 changes: 118 additions & 0 deletions
118
packages/go_router_builder/example/lib/all_types.g.dart
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -136,4 +136,24 @@ void main() { | |||||
| '/iterable-route?int-list-field=1&int-list-field=2&int-list-field=3'), | ||||||
| findsOneWidget); | ||||||
| }); | ||||||
|
|
||||||
| testWidgets( | ||||||
| 'It should navigate to the iterable route with the its default values', | ||||||
|
||||||
| 'It should navigate to the iterable route with the its default values', | |
| 'It should navigate to the iterable route with its default values', |
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
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
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
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.
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.
Maybe build a widget that holds all these parameter as its property, and then you can use
tester.widget<>(find.byType)to get the widget and then you can compare the value of each property in the widget.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.
I've implemented it in test: Add better tests