-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Update navigation_and_routing sample to go_router 5
#1437
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
Conversation
| return FadeTransitionPage<dynamic>( | ||
| key: state.pageKey, | ||
| // Use a builder to get the correct BuildContext | ||
| // TODO (johnpryan): remove when https://github.com/flutter/flutter/issues/108177 lands |
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.
Should this PR be blocked on this issue being resolved?
|
I'm curious why CI is red, any ideas? |
navigation_and_routing sample to go_router 5
| onTap: (idx) { | ||
| switch (idx) { | ||
| case 1: | ||
| GoRouter.of(context).go('/books/new'); |
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.
Suggestion: Would it be possible to use context.go() extension function instead of GoRouter.of(context).go? so it aligns with https://pub.dev/packages/go_router/example
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.
That fine with me
|
I wanted to enable Material 3 on this sample, but since I saw this PR open, I didn't want to mess with the work and cause a merge conflict, so I wanted to ask first. How do you prefer me to proceed? |
|
Brett, do you see #1437 (comment) as a blocker or should we try to merge this PR? |
This is a new PR to update the navigation_and_routing sample to the latest version of go_router. It is a based on #1437 --------- Co-authored-by: Brett Morgan <brettmorgan@google.com>
Updates the navigation_and_routing sample to go_router 5.
Depends on flutter/flutter#111981
Pre-launch Checklist
///).