在Flutter 中,我为异步任务中的加载器编写了简单的对话框.当我touch 外面的对话框被取消时,我如何才能停止这种行为?
Code个
showDialog(
context: context,
builder: (_) => new Dialog(
child: new Container(
alignment: FractionalOffset.center,
height: 80.0,
padding: const EdgeInsets.all(20.0),
child: new Row(
mainAxisSize: MainAxisSize.min,
children: [
new CircularProgressIndicator(),
new Padding(
padding: new EdgeInsets.only(left: 10.0),
child: new Text("Loading"),
),
],
),
),
));
任何帮助我们都将不胜感激,提前谢谢您.