[英]SingleChildScrollView
如果添加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...
},),
),
],
),
);
將高度設置為 ReorderableListView:
Container(
height: 100,
child: ReorderableListView(...
...
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.