Skip to content

InputDatePickerFormField should allow empty dates without 'Invalid format' message. #117511

@johannww

Description

@johannww

Use case

When using an InputDatePickerFormField to get a date in a form, the 'Invalid format' message is displayed. However, the form application might accept that the date input stays empty. In such occasions, the 'Invalid format' message should not be displayed.

invalidFormat

Proposal

Add the 'acceptEmptyDate' field to InputDataPIckerFormField, like implemented in this fork's commit.

This must be provided by flutter directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: 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 Flutterf: 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