【发布时间】:2019-12-04 16:11:32
【问题描述】:
我想在点击按钮时显示一个弹出窗口。当我尝试使用此 AlertDialog 的自定义设计子容器显示 AlertDialog 时,该容器未覆盖整个空间。它有一些角落的填充物。 我是这样实现的:
AlertDialog(
shape: OutlineInputBorder(
borderRadius: BorderRadius.circular(16.0)
),
content: SingleChildScrollView(
child: Column(
children: <Widget>[
Container(
color: Colors.redAccent,
width: screenSize.width,
height: screenSize.height*.90,
child: Text('test'),
)
],
),
),
)
【问题讨论】:
标签: user-interface flutter dart flutter-layout