Great article!
I want to add on the comment of camillo777.
His comment is correct, however I see that the type <AuthService> has disappeared.
Because of HTML formatting. The correct output should be:
Provider.of<AuthService>(context).loginUser(_email, _password);
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Very nice article!
I think for Part1 you forgot to add at the end to call "Login":
if (form.validate()) {
print("$_email $_password");
Provider.of(context).loginUser(_email, _password); <-----------
}
thanks for the catch
Hello Aaron,
Great article!
I want to add on the comment of camillo777.
His comment is correct, however I see that the type <AuthService> has disappeared.
Because of HTML formatting. The correct output should be:
Provider.of<AuthService>(context).loginUser(_email, _password);