flutter ListView KeepAlive after some scroll

后端 未结 4 657
抹茶落季
抹茶落季 2020-12-11 18:37

I want to keepAlive my widgets which are already rendered in ListView. I was tried with addAutomaticKeepAlives:true properties which p

4条回答
  •  猫巷女王i
    2020-12-11 19:07

    You can try looking at the cacheExtent property on listview builder as well. Setting that to a value to cover your items will keep them all alive. Thanks to Remi above. I had no idea the items needed keepAlive when using it on the list - that was not in the flutter doco previously...

提交回复
热议问题