Created
August 2, 2019 06:57
-
-
Save ipondroid/e14d5deaef204c0713bfd7ca5195e120 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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