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

请问如何让page内的widget keepAlive?比如listview已滑动的状态 #537

Open huangpgit opened 4 years ago

huangpgit commented 4 years ago

page中的tabview中有listview, 页面切换的时候会重建页面。

huangpgit commented 4 years ago

我自己用AutomaticKeepAliveClientMixin包装了下,可以解决问题。就是不知道fish redux有没有内置这个功能?

huangpgit commented 4 years ago

使用AutomaticKeepAliveClientMixin包装子组件后, 发现state更新不重绘了,不知道怎么解决这个问题?

zjuwjf commented 4 years ago

方便提供最小化可运行的demo么?