MenuDropdownConfig constructor
const
MenuDropdownConfig({
- Color backgroundColor = Colors.white,
- double borderRadius = 6,
- double elevation = 4,
- double? width,
- double? maxHeight,
- EdgeInsets contentPadding = const EdgeInsets.symmetric(vertical: 8),
- TextStyle? labelTextStyle = const TextStyle(color: Colors.black, fontSize: 14),
- Color? itemIconColor,
- double iconSize = 20,
- Duration animationDuration = const Duration(milliseconds: 150),
- MenuAlignment alignment = MenuAlignment.left,
- bool showAbove = false,
- Color? tooltipTextColor,
- Color? tooltipBackgroundColor,
- TextStyle? headerTextStyle,
Implementation
const MenuDropdownConfig({
this.backgroundColor = Colors.white,
this.borderRadius = 6,
this.elevation = 4,
this.width,
this.maxHeight,
this.contentPadding = const EdgeInsets.symmetric(vertical: 8),
this.labelTextStyle = const TextStyle(color: Colors.black, fontSize: 14),
this.itemIconColor,
this.iconSize = 20,
this.animationDuration = const Duration(milliseconds: 150),
this.alignment = MenuAlignment.left,
this.showAbove = false,
this.tooltipTextColor,
this.tooltipBackgroundColor,
this.headerTextStyle,
this.footerTextStyle,
});