Created
June 4, 2019 17:52
-
-
Save aaronksaunders/ba5466db429c33974d9799b8ea9cc01b to your computer and use it in GitHub Desktop.
Markdium-Simple Firebase Login Flow in Flutter, Now Firebase
This file contains hidden or 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
| Future _buildErrorDialog(BuildContext context, _message) { | |
| return showDialog( | |
| builder: (context) { | |
| return AlertDialog( | |
| title: Text('Error Message'), | |
| content: Text(_message), | |
| actions: [ | |
| FlatButton( | |
| child: Text('Cancel'), | |
| onPressed: () { | |
| Navigator.of(context).pop(); | |
| }) | |
| ], | |
| ); | |
| }, | |
| context: context, | |
| ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment