Flutter_form_builder: FormField.autovalidate not found

Created on 4 Sep 2020  路  6Comments  路  Source: danvick/flutter_form_builder

In the latest flutter version 1.22.0-10.0.pre.79, FormField.autovalidate does not exist anymore

Most helpful comment

Kindly use ^3.14.0

All 6 comments

Yeah, it seems to be replaced with AutovalidationMode.

/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.14.0-alpha.2/lib/src/form_builder_custom_field.dart:96:40: Error: The getter 'autovalidate' isn't defined for the class 'FormField'.

  • 'FormField' is from 'package:flutter/src/widgets/form.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/form.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'autovalidate'.
    autovalidate: widget.formField.autovalidate,
    ^^^^^^^^^^^^

FAILURE: Build failed with an exception.

I have the same issue.
What is the fix for this?

I have the same issue.
What is the fix for this?

I switched to Flutter stable channel (there Flutter version is 1.20) and I am using Form Builder version 3.13.5
I will stay using the stable channel until a fix be available.

ok thanks. while i posted here i also tried some workaround.
flutter version 1.22.0-9.0.pre

i am on master channel and switched to some pre-release of flutter not far from latest with above command.
this fixed my issue for the moment.

Kindly use ^3.14.0

Was this page helpful?
0 / 5 - 0 ratings