I am new to flutter development. I wanted to achieve android onResume()
functionality
in flutter. I was handling that using then()
like this
Navigator.push(context,
MaterialPageRoute(builder: (_) => PageTwo()))
.then((value) {
refresh();
});
This is working fine If i am coming back from PageTwo
to PageOne
.
I am going to pageThree PageOne->pageTwo using Push()
and pageTwo->PageThree using PushReplacement()
. When i pop()
pageThree pageOne is not refreshing.