Skip to content

Instantly share code, notes, and snippets.

@ipondroid
Created August 2, 2019 06:57
Show Gist options
  • Save ipondroid/e14d5deaef204c0713bfd7ca5195e120 to your computer and use it in GitHub Desktop.
Save ipondroid/e14d5deaef204c0713bfd7ca5195e120 to your computer and use it in GitHub Desktop.
class _MyHomePageState extends State<MyHomePage> {
AlertDialog _dialog(String title) {
return AlertDialog(
title: Text(title),
actions: <Widget>[
FlatButton(
child: Text('back'),
onPressed: () {
Navigator.pop(context);
},
),
],
);
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment