Skip to content

Instantly share code, notes, and snippets.

@kakobayashi
Last active June 7, 2019 00:59
Show Gist options
  • Select an option

  • Save kakobayashi/2a3179f0951c8f45852568ae8c73c137 to your computer and use it in GitHub Desktop.

Select an option

Save kakobayashi/2a3179f0951c8f45852568ae8c73c137 to your computer and use it in GitHub Desktop.
RaisedButton(
onPressed: () {
showDialog(
context: context,
builder: (context) {
return AlertDialog(
title: Text("タイトル"),
content: Text("メッセージメッセージメッセージメッセージメッセージメッセージ"),
actions: <Widget>[
FlatButton(
child: Text("Cancel"),
onPressed: () => Navigator.pop(context),
),
FlatButton(
child: Text("OK"),
onPressed: () => Navigator.pop(context),
),
],
);
},
);
},
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment