小编Joã*_*ili的帖子

如何将AlertDialog设置为不在flutter中关闭外部

我建立了一个AlertDialog来显示加载,而我正在验证用户,当它完成后我弹出它.

Widget loadingDialog = new AlertDialog(
content: new Row(
  children: <Widget>[
    new CircularProgressIndicator(),
    Padding(
      padding: const EdgeInsets.only(left: 8.0),
      child: new Text("Loading..."),
    ),
  ],
),);
Run Code Online (Sandbox Code Playgroud)

但是,如果用户点击对话框外,它会关闭.因此,当auth完成时,它仍会弹出一些东西(我猜是脚手架),打破了应用程序.如何让Dialog不能关闭?

android-alertdialog flutter

8
推荐指数
2
解决办法
1979
查看次数

标签 统计

android-alertdialog ×1

flutter ×1