https://www.jb51.net/article/157680.htm
![](https://img.haomeiwen.com/i1745207/2ed0757cc9d6926a.png)
![](https://img.haomeiwen.com/i1745207/4ec570c906780a3c.png)
![](https://img.haomeiwen.com/i1745207/f616ed21d8346718.png)
第三:使用PageView+AutomaticKeepAliveClientMixin
这里有个坑:要使用PageView(),而不能使用PageView.builder(),否则无法保持状态.
https://www.jb51.net/article/157680.htm
第三:使用PageView+AutomaticKeepAliveClientMixin
这里有个坑:要使用PageView(),而不能使用PageView.builder(),否则无法保持状态.
本文标题:Flutter实现页面切换后保持原页面状态的3种方法
本文链接:https://www.haomeiwen.com/subject/koccmctx.html
网友评论