Manage you project Routes. Create nested routes. Simply navigation without context to your pages. Change only one sub widget in your page when navigating to new route.
Chrome: Version 112.0.5615.49 (Official Build) (arm64)
qlevar_router: 1.9.0
After use QR.to('/history'), the url becomes xxx.com/history, if click the back button on the appbar, it works fine (url becomes xxx.com/ and the content becomes the home page). But if click the back button of the browser, it breaks. (url becomes xxx.com but the ui is still in history page.)
Chrome:
Version 112.0.5615.49 (Official Build) (arm64)
qlevar_router:1.9.0
After use
QR.to('/history')
, the url becomesxxx.com/history
, if click the back button on the appbar, it works fine (url becomesxxx.com/
and the content becomes the home page). But if click the back button of the browser, it breaks. (url becomesxxx.com
but the ui is still in history page.)What went wrong?
Here is the routes:
The build function is
myapp
:the code that goes to history screen:
Thanks in advance