showDialog(context: context,
barrierDismissible: false,//设置为false,点击空白处弹窗不关闭
builder: (context){
return new AlertDialog(
content: Text('msg'),
actions: <Widget>[
new TextButton(
child: new Text('确定'),
onPressed: () {
Navigator.of(context).pop();
},
),
],
);
},
);
THE END