MenuItemStyle constructor

MenuItemStyle({
  1. MenuItemMaterialStateProperty<Color>? overlayColor,
  2. double? minHeight,
  3. EdgeInsetsDirectional? padding,
  4. double? largeStartPadding,
  5. StartPaddingStyle? startPaddingStyle,
  6. double? contentsVertSpacing,
  7. double? contentsMinHorzSpacing,
  8. TextStyle? shortcutLabelTextStyle,
  9. AssetImage? arrowIconAsset,
  10. double? arrowIconSize,
  11. IconThemeData? iconStyle,
})

Relying on vertical paddings may cause inconsistent menu items' heights because items' content may have different heights, e.g., when some items have icons and other don't. Consider using minHeight to achieve the consistency.

Implementation

MenuItemStyle({
  this.overlayColor,
  this.minHeight,
  this.padding,
  this.largeStartPadding,
  this.startPaddingStyle,
  this.contentsVertSpacing,
  this.contentsMinHorzSpacing,
  this.shortcutLabelTextStyle,
  this.arrowIconAsset,
  this.arrowIconSize,
  this.iconStyle
});