I understand if we want to pass data from pageA to pageB, we can use this
Navigator.pushNamed(context, PageB.ROUTE,arguments:pageAData);
If we want to pass data from pageA to pageE, what are the best way to achieve it?
In my app, it has a submit button in pageE. Once it is clicked, I want all data(pageA to pageD) submitted to server.
I recommend you to use some state management lib like provider or bloc_pattern
1.4m articles
1.4m replys
5 comments
57.0k users