Skip to content

[proposal] Make DropdownButton items's alignment customizable #81154

@Juliotati

Description

@Juliotati

Use case

Currently, the default alignment for the dropdown item cannot be changed from our end unless we go in and change it from the framework ☠.

image

We are left with all that white space if there are items in the list that have different length in characters

image

Proposal

It would be good if it was changed from

alignment: AlignmentDirectional.topStart,

to

alignment: itemsAlignment ?? AlignmentDirectional.topStart,

image

After positioning it as it should be this is the result 🌟✨✨

image

Metadata

Metadata

Assignees

Labels

c: 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 version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions