I have a stateful widget in my first and second screen.
I have a list in my second screen and want to pass it to my first screen.
How to do it ?
I know how to pass a single data between screens but it didn’t work for a list.
I have a stateful widget in my first and second screen.
I have a list in my second screen and want to pass it to my first screen.
How to do it ?
I know how to pass a single data between screens but it didn’t work for a list.
2
Answers
Navigator.push(
is a future method, you can wait until it pop.On First page
And on second page while pop.
Example snippet
In first screen to navigate to second:
In second screen