Handle sub route navigation #95
-
I have a route that looks like this. verify and add-info is a subroute of signup.
When the user reaches the |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 6 replies
-
You bet. The docs here describe how to do that: https://pub.dev/packages/go_router#sub-routes |
Beta Was this translation helpful? Give feedback.
-
Then you make add-info a sub-route of verify. |
Beta Was this translation helpful? Give feedback.
-
What happens when you apply the instructions at https://pub.dev/packages/go_router#sub-routes ? What have you got so far? What behavior are you not getting that you expect? |
Beta Was this translation helpful? Give feedback.
-
What does the code for your list of routes look like? |
Beta Was this translation helpful? Give feedback.
-
Correct. |
Beta Was this translation helpful? Give feedback.
Correct.
go
builds up the entire stack of pages, replacing the current state.push
creates the last page it matches and pushes that onto the existing stack.