Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/dropdown_button2/lib/src/dropdown_menu_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ class _DropdownItemButtonState<T> extends State<_DropdownItemButton<T>> {
enableFeedback: widget.enableFeedback,
onTap: _handleOnTap,
onFocusChange: _handleFocusChange,
borderRadius: menuItemStyle.borderRadius,
overlayColor: menuItemStyle.overlayColor,
child: isSelectedItem
? menuItemStyle.selectedMenuItemBuilder?.call(context, child) ??
Expand Down
4 changes: 4 additions & 0 deletions packages/dropdown_button2/lib/src/dropdown_style_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,17 @@ class MenuItemStyleData {
/// Creates a MenuItemStyleData.
const MenuItemStyleData({
this.padding,
this.borderRadius,
this.overlayColor,
this.selectedMenuItemBuilder,
});

/// The padding of menu items
final EdgeInsetsGeometry? padding;

/// The border radius of the menu item
final BorderRadius? borderRadius;

/// Defines the ink response focus, hover, and splash colors.
///
/// This default null property can be used as an alternative to
Expand Down