遇到此错误如果在我的屏幕中添加了SingleChildScrollView,它仍然会有其他小部件,这就是为什么我需要使我的屏幕可滚动
return SingleChildScrollView(
child: Column(
children: [
Expanded(
child: ReorderableListView.builder(
shrinkWrap: true,
scrollController: ScrollController(),
physics: ScrollPhysics(),
itemCount: object.length,
onReorder:onReorder,
itemBuilder: (BuildContext context, int index) {
return...
},),
),
],
),
);发布于 2021-04-24 05:26:01
将高度设置为ReorderableListView:
Container(
height: 100,
child: ReorderableListView(...
...https://stackoverflow.com/questions/67236832
复制相似问题