[英]SingleChildScrollView
Encounter this error if added SingleChildScrollView
In my screen it will still have others widgets as well, that's why i need to make my screen scrollable如果添加
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...
},),
),
],
),
);
Either set height to your ReorderableListView:将高度设置为 ReorderableListView:
Container(
height: 100,
child: ReorderableListView(...
...
Or check this: How to use Expanded in SingleChildScrollView?或者检查一下: 如何在 SingleChildScrollView 中使用 Expanded?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.