Website: https://web.flatteredwithflutter.com/#/
We will cover briefly about
Storing navigation routes
Implement navigatorObservers
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).
Implementing Stacks in Dart
In doing my research I found
dart:collection
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
Website: https://flatteredwithflutter.com/flutter-web-and-navigation-history/
DevTo: https://dev.to/aseemwangoo/flutter-web-and-navigation-history-191l
Medium: https://medium.com/@aseemwangoo/flutter-web-and-navigation-history-3feec04bfc80