modular
modular copied to clipboard
Modular Flutter clearing data passed by arguments getting lost in Flutter Web
Modular Flutter clearing data passed by arguments getting lost in Flutter Web when hot restarting or hot reloading, also happens when restarting the page.
To Reproduce
Use the following code, it is a simple contactor example. (https://github.com/joaovictor78/simple_example) Steps:
- Navigate to the second screen
- Do a hot reload in flutter Web or restart the page.
- OBS: The problem does not happen using flutter's native navigation resources provided by google
See https://docs.flutter.dev/development/ui/navigation#web-support
@eduardoflorence I think the problem is not yet that, in the modular flutter would there be some way to save the navigation state or is it not fully prepared for the Web? https://itnext.io/state-restoration-in-flutter-b6030b95a4d4