MenuItemStyle constructor
MenuItemStyle({
- MenuItemMaterialStateProperty<
Color> ? overlayColor, - double? minHeight,
- EdgeInsetsDirectional? padding,
- double? largeStartPadding,
- StartPaddingStyle? startPaddingStyle,
- double? contentsVertSpacing,
- double? contentsMinHorzSpacing,
- TextStyle? shortcutLabelTextStyle,
- AssetImage? arrowIconAsset,
- double? arrowIconSize,
- 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
});