You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[padding](https://pub.dev/documentation/dropdown_button2/latest/dropdown_button2/MenuItemStyleData/padding.html)| The padding of menu items | EdgeInsetsGeometry | No |
142
-
|[borderRadius](https://pub.dev/documentation/dropdown_button2/latest/dropdown_button2/MenuItemStyleData/borderRadius.html)| The border radius of the menu item | BorderRadius | No |
143
-
|[overlayColor](https://pub.dev/documentation/dropdown_button2/latest/dropdown_button2/MenuItemStyleData/overlayColor.html)| Defines the ink response focus, hover, and splash colors for the items | MaterialStateProperty<Color?> | No |
144
-
|[selectedMenuItemBuilder](https://pub.dev/documentation/dropdown_button2/latest/dropdown_button2/MenuItemStyleData/selectedMenuItemBuilder.html)| A builder to customize the selected menu item | SelectedMenuItemBuilder | No |
|[padding](https://pub.dev/documentation/dropdown_button2/latest/dropdown_button2/MenuItemStyleData/padding.html)| The padding of menu items | EdgeInsetsGeometry | No |
142
+
|[useDecorationHorizontalPadding](https://pub.dev/documentation/dropdown_button2/latest/dropdown_button2/MenuItemStyleData/useDecorationHorizontalPadding.html)| Determine whether to use the horizontal padding from "decoration.contentPadding" for menu items when using `DropdownButtonFormField2`| bool | No |
143
+
|[borderRadius](https://pub.dev/documentation/dropdown_button2/latest/dropdown_button2/MenuItemStyleData/borderRadius.html)| The border radius of the menu item | BorderRadius | No |
144
+
|[overlayColor](https://pub.dev/documentation/dropdown_button2/latest/dropdown_button2/MenuItemStyleData/overlayColor.html)| Defines the ink response focus, hover, and splash colors for the items | MaterialStateProperty<Color?> | No |
145
+
|[selectedMenuItemBuilder](https://pub.dev/documentation/dropdown_button2/latest/dropdown_button2/MenuItemStyleData/selectedMenuItemBuilder.html)| A builder to customize the selected menu item | SelectedMenuItemBuilder | No |
Copy file name to clipboardexpand all lines: packages/dropdown_button2/CHANGELOG.md
+1
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@
9
9
- Avoid Container objects when possible for better performance [Flutter core].
10
10
- Add semantics to dropdown menu items [Flutter core].
11
11
- Support helperStyle/helperMaxLines/errorMaxLines for DropdownButtonFormField2.
12
+
- Add `MenuItemStyleData.useDecorationHorizontalPadding`, used to determine whether to use the horizontal padding from "decoration.contentPadding" for menu items when using `DropdownButtonFormField2`.
0 commit comments