Skip to content

Create DropdownMenuFormField #141941

@Zerak630

Description

@Zerak630

Use case

DropdownButton is replaced by DropdownMenu with Material 3. DropdownButtonFormField should be replaced by a DropdownMenuFormField widget, but this one does not exists yet. It could be super useful to handle validator on DropdownMenu thanks to a FormField-dedicated widget.

Proposal

This should be a part of Flutter (as previous mentioned widgets). I tried to implement myself this new widget, but I figured out that there is too many obscure things I don't understand yet. Please find attached a very basic implementation, with a simple use
case (validator works, but there is a bug with the value not being changed).

demo.zip

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterf: material designflutter/packages/flutter/material repository.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