Changes

This section lists the deprecations by affected class.

maxLengthEnforced of TextField & related classes

Supported by Flutter Fix: yes

maxLengthEnforced was deprecated in v1.25.

The following classes all have the same change of API:

TextField

TextFormField

CupertinoTextField

Migration guide

In-depth migration guide available

Code before migration:

const

TextField

textField

TextField

maxLengthEnforced:

true

);

const

TextField

textField

TextField

maxLengthEnforced:

false

);

final

lengthEnforced