csells / go_router

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.
https://gorouter.dev
441 stars 97 forks source link

Using pushReplacement #153

Closed frankiechz closed 3 years ago

frankiechz commented 3 years ago

Non-web question. Is there an example or any insight into how to use Navigator.pushReplacement (or any other method) to replace a current view on the stack? (I don't want me user to push the AppBar back button and go back.) Navigator.pushReplacement requires a Route object.

Thank you, A new Flutter user