DEV Community

Discussion on: Simple Login Flow in Flutter, then Firebase - Part One

Collapse
 
camillo777 profile image
camillo777

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); <-----------
}

Collapse
 
aaronksaunders profile image
Aaron K Saunders

thanks for the catch

Collapse
 
hwcjd profile image
hwcjd

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);