alignedDropdown property

bool? alignedDropdown
final

If true, then a DropdownButton and DropdownButtonFormField menu's width will match the button's width.

If false (the default), then the dropdown's menu will be wider than its button. In either case the dropdown button will line up the leading edge of the menu's value with the leading edge of the values displayed by the menu items.

This property only affects DropdownButton and its menu.

If not defined default to false.

Implementation

final bool? alignedDropdown;