-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[go_router] Add ShellRoute #2362
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
77d95cd
to
502f7e4
Compare
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
8c3e40d
to
a637aca
Compare
@loic-sharma @chunhtai ready for another look - I added some functionality to ShellRoute with some tests, but right now this is still a "dark" feature and not part of the public API exposed by |
After discussing this offline, I want to make some changes to this PR:
|
bf44e2c
to
41ddc31
Compare
Should this PR target the |
This isn't a breaking change, but maybe we should if we want to avoid merge conflicts. @chunhtai WDYT? |
I assume this pr deals with nested routers. One annoying thing with nested routers in practice are all the overlays like dialogs, bottom sheet, etc. By default the result will be unexpected for most users: the modal barrier will only appear on the nested route. You have to explicitely call How will those scenarios be handled ? I said it before when @chunhtai requested feedback: those two concepts of "overlay" and navigation should not have been mixed together in my opinion. Imo a separate overlay handler class is needed, but that might be to big of a change. |
You can specify which Navigator a route's screen will be overlaid on by specifying a
Can you describe this scenario a bit more? This PR is a simplified version of go_router_prototype, which supports overlay-based navigation (GoRoute / StackedRoute) and shell-based navigation (ShellRoute). Shell-based navigation is very similar to how routing works for web-application frameworks and isn't based on overlays. |
This comment was marked as off-topic.
This comment was marked as off-topic.
@cedvdb this is getting off-topic, would you mind filing a separate issue? |
ad84fd9
to
20f8d96
Compare
20f8d96
to
62b1d13
Compare
New pull request: #2453 |
Adds ShellRoute
Resolves flutter/flutter#108141