VeryGoodOpenSource / formz

A unified form representation in Dart used at Very Good Ventures 🦄
https://pub.dev/packages/formz
MIT License
378 stars 39 forks source link

The getter 'isSubmissionFailure' isn't defined for the type 'FormzStatus'. #33

Closed sultanmyrza closed 3 years ago

sultanmyrza commented 3 years ago

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'

alt error_image

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 3 years ago

Importing import 'package:formz/formz.dart'; on top of the file fixed it for me.