Flutter实现页面切换后保持原页面状态的3种方法
2019-10-25 本文已影响0人
流沙3333
https://www.jb51.net/article/157680.htm



第三:使用PageView+AutomaticKeepAliveClientMixin
这里有个坑:要使用PageView(),而不能使用PageView.builder(),否则无法保持状态.
https://www.jb51.net/article/157680.htm
第三:使用PageView+AutomaticKeepAliveClientMixin
这里有个坑:要使用PageView(),而不能使用PageView.builder(),否则无法保持状态.