qlevar_router
qlevar_router copied to clipboard
WillPopScope not working?
qlevar_router is so great router i ever use, i just confused how to doing something before pop, for example
- i want clear all getx controller before pop
- i want do some conditional pop or replace to other path
i need a guidance to achieve this, thanks before
Hi @hiroppi401,
Thanks, I'm glad you liked it.
To do what you are looking for, you can use middleware with 'CanPop' or with 'OnExit'
Check this:
After the page is ready there and user clicks back, the
canPop
and OnExit
methods will be called for every defined middleware on the route.
Hi @hiroppi401, Thanks, I'm glad you liked it. To do what you are looking for, you can use middleware with 'CanPop' or with 'OnExit' Check this:
After the page is ready there and user clicks back, the
canPop
andOnExit
methods will be called for every defined middleware on the route.
thank you sir, i'll try that