[英]Flutter: How can I show list using listviewbuilder?
I want to generate this newvoucherlist inside listviewbuilder.我想在 listviewbuilder 中生成这个 newvoucherlist。 How can I do that?
我怎样才能做到这一点?
ListView.builder(
itemCount: newVoucherList.length,
itemBuilder: (BuildContext context,int index){
return myWidget(newVoucherList[index]);
}
)
myWidget(newVoucherList){
// use this newVoucherList here in your widget
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.