Skip to content

Allow setting the start/opening offset of DropdownMenuItem #129820

@bochelie1000

Description

@bochelie1000

Is there an existing issue for this?

Use case

DropdownButton should have the possibility to open below itself. At the moment this is not an option.
See your own example: https://api.flutter.dev/flutter/material/DropdownButton-class.html
In there the dropdownbutton opens above the button itself.

Proposal

PopupMenuButton has the possibility to change the starting offset. By changing the offset to 40 the PopupMenuButton opens below itself:
PopupMenuButton( offset: const Offset(0, 40),

Please can you add this to DropdownButton as well? And thuse allow Dropdownbutton to open below itself.

It seems that Dropdownbutton2 from pub.dev does open as desired just below the dropdownbutton2 itself. However that is not a flutter package and thus I prefer not to use it in production apps.
https://pub.dev/packages/dropdown_button2

Metadata

Metadata

Assignees

No one assigned

    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.team-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions