Refresh listView from PopUntil

152 views
Skip to first unread message

Tony Seng

unread,
Mar 16, 2020, 1:44:58 PM3/16/20
to Flutter Development (flutter-dev)

Just wonder if I use this code to return PageA from PageD, which function will it get called in PageA?


PageD

 

Navigator.of(context).popUntil(ModalRoute.withName(PageA.ROUTE));

I would like to make the listView in pageA refreshed once it is back from PageD, but I don't know how to achieve.


I added a then in PageA, but it not printing anything.

 Navigator.pushNamed(context, PageB.ROUTE).then((onValue) {
       
print("call from Page4");
       _refreshListView
();
});  


Reply all
Reply to author
Forward
0 new messages