alibaba / fish-redux

An assembled flutter application framework.
https://github.com/alibaba/fish-redux
Apache License 2.0
7.33k stars 843 forks source link

PageA到PageB生命周期 #592

Open hasonguo opened 4 years ago

hasonguo commented 4 years ago

两个Flutter页面,一个PageA 一个PageB,PageA跳到PageB,然后点击返回键返回到PageA,pageA的哪个生命周期会执行啊,我想每次进pageA都要重新请求数据。或者怎么操作能知道返回了pageA

o1298098 commented 4 years ago

可以通过这样,当B页 Navigator.of(context).pop([result]); 下面的代码就会获取结果

Navigator.of(context).pushNamed('B').then((result){
});