如何从列表视图的外部控制列表视图构建器?
在文本字段中,我可以像这样使用控制器:controller:Textcontroller。我可以在listviewbuilder中做类似的事情来清除其中的所有对象吗?
答案 0 :(得分:0)
准确地说。我的代码看起来像这样
Expanded(
child: new ListView.builder(
itemCount: List.length,
itemBuilder: (context,index){
return new Card(
//all stuff with data
),
),
);
},
....
我如何实现StatefulBuilder或像评论中的某人一样更改其状态?