Skip to content

Add TextFormField validation states (dirty, touched, etc) #18885

Closed
@Chris1234567899

Description

Another feature request:
At the moment TextFormField allows to use autovalidate activated or deactivated which is nice.
The "problem" is that if autovalidate is active, it validates the initial state of the input right away, marking a field as invalid when a user opens first time a login page for example - which does not look very nice.

A possible solution would be using additional states. Something like:

  • field is empty and untouched
  • field is empty but user wrote something before (and deleted it again)
  • field has content,
  • user is currently typing

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: text inputEntering text in a text field or keyboard related problemsc: new featureNothing broken; request for a new capabilitycustomer: crowdAffects or could affect many people, though not necessarily a specific customer.f: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions