I open PageB from PageA using this code
Navigator.pushNamed(context, PageB.ROUTE);In pageB, when I press the back device button, it will return to pageA, but the initState in PageA is not getting called. Why? I want it call a function once it is back from pageB.
await Navigator.pushNamed(context, PageB.ROUTE);// now here do whatever you like to update PageA (eg setState)
--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/7f157183-456e-4989-9a82-cf0a25c60c78%40googlegroups.com.