Skip to content

Add validator to DropdownMenu #152131

@SyncroIT

Description

@SyncroIT

Use case

There is no validator property on DropdownMenu.
It is tricky to show error messages on DropdownMenu because of not knowing when the validation is being ran on the parent form.

Proposal

When using DropdownMenu, it'd be great to have a validator property, as we already do for FormField:
https://api.flutter.dev/flutter/widgets/FormField/validator.html

Metadata

Metadata

Assignees

Labels

P3Issues that are less important to the Flutter projectc: 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.r: fixedIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

Type

No type

Projects

Status

Done (PR merged)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions