【发布时间】:2021-05-09 18:36:52
【问题描述】:
【问题讨论】:
-
发布您的代码和错误
-
用 Expanded 包裹 ListView。
标签: flutter dart frontend firebase-storage
【问题讨论】:
标签: flutter dart frontend firebase-storage
您可以使用以下内容:
YourSearchBar(),
Expanded(
child: ListView()
)
【讨论】:
您可以简单地将列表视图包装在单子滚动视图中的列和列中,并将列表视图的物理设置为 NeverScrollableScrollPhysics。
代码:-
SingleChildScrollView(
child: Column(
children: <Widget>[
YourSearchBar(),
Text('your text'),
ListView.builder(
physics: NeverScrollableScrollPhysics(),
shrinkWrap: true,
itemCount:10,//replace 10 with the count of elements in list
itemBuilder: (context,index){
return yourWidget();//return here the widget you want to show(your cake design one)
})
],
),
),
【讨论】: