Skip to content

Add bool validateOnLostFocus to the FormField and Form class #40675

@escamoteur

Description

@escamoteur

Use case

Forms and FormFieldhave an autoValidate property. But if set to true it will validate on every keystroke/change which is annoying if you start typing e.g. an email address and with the first press the message Not a valid email address is displayed
It would be much more user friendly if an autoValidate option existed that waits with validation till the user(focus) leaves the field when he has finished editing.

Proposal

add a new property

bool validateOnLostFocus

to the Form and FormField classes that allows this functionality

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: text inputEntering text in a text field or keyboard related problemsc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions