解决flutter 多个listView 动态高度的问题
2022-09-29 本文已影响0人
neobuger
ListView.builder(
shrinkWrap: true, //为true可以解决子控件必须设置高度的问题
physics: NeverScrollableScrollPhysics(),//内部禁止滑动
itemCount: this.bottomList.length,
itemBuilder: (BuildContext context, int index) {
return this.bottomList[index];
},
),