[Breaking Change] Updates to the form fields auto validation API

178 views
Skip to first unread message

Pedro Massango

unread,
Sep 3, 2020, 1:34:06 PM9/3/20
to Flutter Public Announcements (flutter-announce)
Hello everyone,

If you are not using the auto validation API of the following widgets: Form(autovalidate: true)FormField(autovalidate: true), DropdownButtonFormField(autovalidate: true) and TextFormField(autovalidate: true), you can stop reading now.

We recently introduced a new auto validation api for the widgets mentioned above to simplify and give to developers more control over when the auto validation should happen. The new API is called autovalidateMode which is now available as parameter for the contructor of the widgets mentioned above for you to migrate from the old one.

The migration guide can be found in here: https://github.com/flutter/website/pull/4512/files.

Feel free to comment on the PR if you have any questions.

~Pedro Massango

Shams Zakhour

unread,
Sep 3, 2020, 2:41:19 PM9/3/20
to Pedro Massango, Flutter Public Announcements (flutter-announce)
Here's a slightly more readable version, from flutter.dev, on how to migrate your code.

--
You received this message because you are subscribed to the Google Groups "Flutter Public Announcements (flutter-announce)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-announ...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-announce/7040fcd5-9d72-439d-9f33-72cd1e633e6cn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages