flutter listview 改变状态的时候一直无限添加
setstate的时候会一直无限的调用listview.builder方法.好像一直无限循环
build的时候调用了加载getList,加载完毕之后,调用了setState,等于又调用了build,这样就是个无限循环。getList要在initState里面调用,不能在build里面调动。
相关推荐
chenjinlong 2020-02-19
83580494 2013-07-19
langjiao 2013-07-16
kiduo0 2013-07-10
gongzhiyao0 2010-11-15
bigdatazx 2010-11-05
Urchindong 2011-08-01
peixiaopao 2011-08-21
MeOrdinary 2014-05-13
magic00 2019-10-21
guizhongyun 2011-09-27
csuhanshuai 2015-03-30
Sunanang 2015-03-30
snailbing 2015-04-23
huohu00 2015-04-22
toperfect 2015-07-01
nickey 2012-01-29
Rgenxiao 2012-01-26
满城风絮 2011-12-03