Uh oh!
There was an error while loading. Please reload this page.
[go_router] Add ShellRoute - #2362
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
@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 |
johnpryan
commented
Aug 8, 2022
After discussing this offline, I want to make some changes to this PR:
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
loic-sharma
commented
Aug 10, 2022
Should this PR target the |
Uh oh!
There was an error while loading. Please reload this page.
johnpryan
commented
Aug 10, 2022
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. |
johnpryan
commented
Aug 11, 2022
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.
johnpryan
commented
Aug 11, 2022
@cedvdb this is getting off-topic, would you mind filing a separate issue? |
johnpryan
commented
Aug 12, 2022
New pull request: #2453 |
Adds ShellRoute
Resolvesflutter/flutter#108141