-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[go_router]Show ShellRoute's routes in debug log #3664
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
[go_router]Show ShellRoute's routes in debug log #3664
Conversation
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!). If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
4ab7871
to
1666e48
Compare
5d0c5fc
to
86e1e14
Compare
@@ -172,7 +172,9 @@ class RouteConfiguration { | |||
return 'RouterConfiguration: $routes'; | |||
} | |||
|
|||
String _debugKnownRoutes() { | |||
/// Returns full paths of all routes and known full paths of route names. |
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.
what's known full paths of route names
. Can you make it more clear?
Co-authored-by: chunhtai <47866232+chunhtai@users.noreply.github.com>
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.
LGTM
Co-authored-by: chunhtai <47866232+chunhtai@users.noreply.github.com>
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.
sorry i missed this one, this should be the last one
[go_router]Show ShellRoute's routes in debug log
Fixes flutter/flutter#113819
Fix ShellRoute's sub routes to log output when
debugLogDiagnostics
istrue
.In
example/lib/shell_route.dart
, the following log is output.Pre-launch Checklist
dart format
.)[shared_preferences]
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.md
to add a description of the change, following repository CHANGELOG style.///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.