This video shows how to store, save navigation history in flutter web.
Flutter Web and Navigation History | Storing navigation routes in Flutter Web *
We will cover briefly about
Storing navigation routes
Implement navigatorObservers
1. Storing navigation routes
It's quite clear, we need a data structure for storing routes.
Thought process: When we navigate between different links in a browser, the last link is usually the first to be traced back (on click of the back button).
The data structure right for use would be Stack since we need to push the routes onto the stack and pop (when we go back to the previous link).
2. Implement Navigator Observers
We have the list queue implemented from the above step.
Next, we need to place this list queue in our flutter web, in such a way that
whenever a new route is pushed,
it should also be added to our NavStack class
URL: https://web.flatteredwithflutter.com/
Website: https://flatteredwithflutter.com/flut...
DevTo: https://dev.to/aseemwangoo/flutter-we...
Medium: / flutter-web-and-navigation-history
Source Code: https://github.com/AseemWangoo/experi...
In case, this helped, pass me a coffee!! 😊😊
https://www.buymeacoffee.com/aseemwangoo
#navigation and #flutterWithMe #flatteredwithflutter