The purpose of the go_router for Flutter is to use declarative routes to reduce complexity, regardless of the platform you're targeting (mobile, web, desktop), handling deep linking from Android, iOS and the web while still allowing an easy-to-use developer experience.
Is there a way where I can go to the previous route and not the parent route.
For example:
Here is the structure:
/
postDetails
usersprofile
settings
Currently what happens is, If I go from / to postDetails and press the back button, it goes home (GOOD)
If i go from HOME -> POSTDETAILS -> USERPROFILE, when I go back, I want to be able to go to the postDetails and not the home page.
Please disregard, I need to pay more attention to go vs push. For anyone else having this issue, please try to use the push and not the go if you want to put it on the stack. Thank you
Is there a way where I can go to the previous route and not the parent route.
For example: Here is the structure: / postDetails usersprofile settings
Currently what happens is, If I go from / to postDetails and press the back button, it goes home (GOOD) If i go from HOME -> POSTDETAILS -> USERPROFILE, when I go back, I want to be able to go to the postDetails and not the home page.
How can i make this happen?
Thank you