modular icon indicating copy to clipboard operation
modular copied to clipboard

Modular Flutter clearing data passed by arguments getting lost in Flutter Web

Open joaovictor78 opened this issue 2 years ago • 2 comments

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:

  1. Navigate to the second screen
  2. Do a hot reload in flutter Web or restart the page.
  3. OBS: The problem does not happen using flutter's native navigation resources provided by google

joaovictor78 avatar Feb 10 '23 23:02 joaovictor78

See https://docs.flutter.dev/development/ui/navigation#web-support

eduardoflorence avatar Feb 11 '23 11:02 eduardoflorence

@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

joaovictor78 avatar Feb 20 '23 16:02 joaovictor78