Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"signInWithEmailAndPasswordPressed()" asking for an argument in "sign_in_form.dart" file #30

Closed
woodsoul507 opened this issue Aug 13, 2021 · 1 comment

Comments

@woodsoul507
Copy link

Hello. Any help on updating this snippet of code since "context.bloc" is deprecate already.

FlatButton(
onPressed: () {
context.bloc().add(
const SignInFormEvent
.signInWithEmailAndPasswordPressed(),
);

I tried with "context.read" instead but ".signInWithEmailAndPasswordPressed()," asks for an argument then. Thanks your help.

@woodsoul507
Copy link
Author

Actually the "context.read" change works just fine. It was my fault on wrong typing the blocs .dart files of the Sign In feature. Thanks the knowledge you share here man!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant