我想在颤动中妥协像这样的iOS全屏对话框 ,有什么建议或解决方案吗?
提前致谢
在这里试试这个我认为这就是你要找的
//This should be one of the first lines in your build function
Size size = MediaQuery.of(context).size;
RaisedButton(
child: Text('Show Bottom Modal'),
onPressed: () => showModalBottomSheet(
isScrollControlled: true,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(30)),
context: context,
builder: (context) => Container(
color: Colors.amber,
height: size.height,
),
),
)
让我知道这对你有用