ダイアログを閉じる方法
Navigator.pop(context);
で閉じれます。
サンプル
var alert = new AlertDialog(
title: new Text("グループを作成する"),
actions: <Widget>[
new FlatButton(onPressed: () {
Navigator.pop(context);
return Navigator.pushNamed(context, "/create_group");
}, child: new Text("作成する")),
],
);
showDialog(
context: context,
builder: (BuildContext context) {
return alert;
});
このパターンだと「作成する」ボタンをタップしたときに画面遷移して戻って来たときにはダイアログは閉じられているようになります。