Skip to content

Instantly share code, notes, and snippets.

@aaronksaunders
Created June 4, 2019 17:52
Show Gist options
  • Select an option

  • Save aaronksaunders/ba5466db429c33974d9799b8ea9cc01b to your computer and use it in GitHub Desktop.

Select an option

Save aaronksaunders/ba5466db429c33974d9799b8ea9cc01b to your computer and use it in GitHub Desktop.
Markdium-Simple Firebase Login Flow in Flutter, Now Firebase
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