0
点赞
收藏
分享

微信扫一扫

flutter底部弹窗设置指定高度的方法

waaagh 2022-03-30 阅读 197
flutter
  showSheet() {
showModalBottomSheet(
context: context,
isScrollControlled: true,
builder: (BuildContext context) {
return FractionallySizedBox(
heightFactor: 0.92,
child: Scaffold(
appBar: AppBar(
actions: [
],
leading: IconButton(
onPressed: () {
Navigator.pop(context);
},
icon: Icon(Icons.close),
iconSize: ScreenAdapter.size(30),
color: Colors.white),
title: Text(""),
centerTitle: true,
backgroundColor: Colors.black38,
),
body: Container(
),
bottomSheet: Container(

)));
});
}
举报

相关推荐

0 条评论