I'm currently working with Flutter Web using flutter_modular for the routing which works properly when you navigate straight to a page throught the browser, but I'm encountering a problem when trying to go back and then next again.
Let me explain myself, imagine you are at the home page and you navigate to the register page, then you press the back button from the browser and then you want to press the Next button from the browser, you can't because Flutter disposed the last page and it is not int the browser history anymore.
Is there anyway to achieve a clean and smooth navigation in Flutter Web?
I had the same problem recently. I got a solution with Flutter Navigation 2.0. My main problem was,
These problem all gone after implementing Flutter Navigation 2.0. Below is the simple test code. You can create test project and copy&paste and check your requirement fits.
I wrote detailed explanation in this blog. I used
GetX
package but you also can use this practice withMaterialApp.router
.https://dev.to/swimmingkiim/flutter-web-fix-refresh-back-button-problem-4gk3