我是颤振开发的新手。我想onResume()在flutter中实现android功能。我正在处理这样的then()使用
Navigator.push(context,
MaterialPageRoute(builder: (_) => PageTwo()))
.then((value) {
refresh();
});
PageTwo如果我从to回来,这工作正常PageOne。
我要去 pageThreePageOne->pageTwo using Push()和pageTwo->PageThree using PushReplacement(). 当我pop()pageThree pageOne 不刷新。