Flutter/alert
提供: 初心者エンジニアの簡易メモ
OK/Cancel確認フォーム
showDialog( context: context, builder: (context) { return CupertinoAlertDialog( title: Text("タイトル1"), content: Text("本文1"), actions: <Widget>[ CupertinoDialogAction( child: Text("Cancel"), isDestructiveAction: true, onPressed: () => Navigator.pop(context), ), CupertinoDialogAction( child: Text("OK"), onPressed: () => Navigator.pop(context), ), ], ); }, );