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
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:
Container(
height: 100,
child: ReorderableListView(...
...
Or check this: How to use Expanded in SingleChildScrollView?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.