VeryGoodOpenSource / formz

A unified form representation in Dart used at Very Good Ventures 🦄

Home Page:https://pub.dev/packages/formz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

sultanmyrza opened this issue · comments

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

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