How to increase height of show modal bottom sheet.I can't get this any longer than this.有人能帮我解决我的问题吗?
我尝试了很多解决方案,但没有一个有效。
在您的
isScrollControlled: true
小部件中添加showModalBottomSheet
。
有关更多详细信息,请访问下面的 Stack overflow 链接
你只需要添加
isScrollControlled: true
这个参数并添加高度到你的小部件然后你可以改变你的底部表的高度
showModalBottomSheet(
context: context,
isScrollControlled: true,
builder: (builder) {
return Container(
height: MediaQuery.of(context).size.height * 0.90,
child: Center(child: ADD_YOUR_WIDGET_HERE()),
);
});
试试这个