[英]Cant scroll with ListView.builder()
I was wondering if anyone had an issue where they use a ListView.builder() and then it doesn't want to scroll我想知道是否有人在使用 ListView.builder() 时遇到问题,然后它不想滚动
return ListView.builder(
scrollDirection: Axis.vertical,
shrinkWrap: true,
itemCount: widget.product.category.length,
itemBuilder: (context, index) {
final item = widget.product.category[index];
return ListTile(title: Text(item));
},
)
I'd suggest you do the following:我建议您执行以下操作:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.