qlevar_router
qlevar_router copied to clipboard
Dashboard sidebar onTap to restore page nested state
Really appreciate this great package and the excellent example 💯 👍 😄
I would like to know how this package can work in this scenario:
- run the example in this repo
- already login and click sidebar stores to http://localhost:57974/#/dashboard/stores
- do some subpage, finally stay at http://localhost:57974/#/dashboard/stores/3/product/6
- click sidebar nav to home http://localhost:57974/#/dashboard/home
- nav back to stores by click sidebar, for now it would be http://localhost:57974/#/dashboard/stores
Would it be possible to nav back to http://localhost:57974/#/dashboard/stores/3/product/6 ? in sidebar_section.dart onTap: () { QR.to('dashboard/stores'); },
how can I easily nav to last sub page navigation ex. (dashboard/stores/xxx/xxx/xxx/xx)?
Thank you a lot for creating suck great package !!
Hi @RoyGuanyu, I am glad you liked it. Thanks. Unemotionally, this is not supported yet, but this will be a good idea to implement. I will try to implement this when I got some time.
So finally, I implemented this in V1.8.0. To achieve this now in your app, you need to do this. Which will save the order and the state of the pages. For more details, you can check the Example or the Test for this case.