我是新手,我想在任务完成后关闭对话框。我尝试过:
Navigator.pop(context, true);
Run Code Online (Sandbox Code Playgroud)
但是我的屏幕变黑了,对话框仍然在那里。这是我的对话代码。
Dialog _dialog = new Dialog(
child: new Row(
mainAxisSize: MainAsixSize.min,
children: <Widget> [
new CircularProgressIndicator(),
new Text("Loading")]),
);
Run Code Online (Sandbox Code Playgroud)