Bloc: The method 'add' isn't defined for the class 'AuthenticationBloc' on the flutter login tutorial

Created on 22 Nov 2019  路  5Comments  路  Source: felangel/bloc

Describe the bug
The method 'add' isn't defined for the class 'AuthenticationBloc'.
Try correcting the name to the name of an existing method, or defining a method named 'add'.

To Reproduce
Steps to reproduce the behavior:

  1. Follow the flutter_login tutorial
question

Most helpful comment

Yup, that was exactly the problem! Thanks

All 5 comments

Hi @sqrg 馃憢
Thanks for opening an issue.

Most likely the problem is you鈥檙e not using the latest versions of bloc and flutter_bloc. Can you please share your pubspec.yaml?

Yup, that was exactly the problem! Thanks

hi i am using the latest version of flutter_bloc and bloc and yet facing the same problem in the same tutorial
Annotation 2020-05-22 215640

Hi @jain-aayush1123 are you sure flutter packages get is running successfully?
You might also want to try flutter clean before flutter packages get.

yeah thanks for the response. flutter packages get was working, there was some other problem.
Btw love the library and have been using it for some time so was a bit surprised to see it fail. Thanks for the time

Was this page helpful?
0 / 5 - 0 ratings

Related issues

endigo picture endigo  路  34Comments

sawankumarbundelkhandi picture sawankumarbundelkhandi  路  108Comments

realtebo picture realtebo  路  41Comments

basketball-ico picture basketball-ico  路  35Comments

felangel picture felangel  路  29Comments