The getter 'isSubmissionFailure' isn't defined for the type 'FormzStatus'.
sultanmyrza opened this issue · comments
Kasymbekov Sultanmyrza commented
I was following tutorial https://bloclibrary.dev/#/flutterlogintutorial
but when I reach step https://bloclibrary.dev/#/flutterlogintutorial?id=login-form
I got this error
The getter 'isSubmissionFailure' isn't defined for the type 'FormzStatus'.
Try importing the library that defines 'isSubmissionFailure', correcting the name to the name of an existing getter, or defining a getter or field named 'isSubmissionFailure'
I tried to follow code as close as possible restarted vsocde etc.
Fun fact: when I open example_code it is not showing this error.
Here is the repo with commit for reproducing error above
Philip Nunoo commented
Importing import 'package:formz/formz.dart';
on top of the file fixed it for me.