Created
May 27, 2020 15:17
-
-
Save haroonkhan9426/29a9c10368e040ccfdbb8a5a8add3e4d 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
_createAccount() async { | |
final status = await FirebaseAuthHelper().createAccount( | |
email: email, pass: password); | |
if (status == AuthResultStatus.successful) { | |
// Navigate to success page | |
} else { | |
final errorMsg = AuthExceptionHandler.generateExceptionMessage( | |
status); | |
_showAlertDialog(errorMsg); | |
} | |
} |
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
_login() async { | |
final status = await FirebaseAuthHelper().login( | |
email: email, pass: password); | |
if (status == AuthResultStatus.successful) { | |
// Navigate to success page | |
} else { | |
final errorMsg = AuthExceptionHandler.generateExceptionMessage( | |
status); | |
_showAlertDialog(errorMsg); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment