-
Notifications
You must be signed in to change notification settings - Fork 30.2k
Allow setting the start/opening offset of DropdownMenuItem #129820
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
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