Skip to content

Instantly share code, notes, and snippets.

@aaronksaunders
Created June 2, 2019 00:45
Show Gist options
  • Select an option

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

Select an option

Save aaronksaunders/843849b98fc89a50c1ac00a16da05ff9 to your computer and use it in GitHub Desktop.
Markdium-
// Validate will return true if is valid, or false if invalid.
if (form.validate()) {
var result = await Provider.of(context)
.loginUser(email: _email, password: _password);
if (result == null) {
// see project in github for this code
//return _buildShowErrorDialog(context,
// "Error Logging In With Those Credentials");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment