TMenuTheme constructor
const
TMenuTheme({
- required Color defaultColor,
- required Color hoverColor,
- required Color activeColor,
- required Color activeBackgroundColor,
- required Color borderColor,
- Duration animationDuration = const Duration(milliseconds: 200),
- Duration showDelay = const Duration(milliseconds: 25),
- Duration hideDelay = const Duration(milliseconds: 125),
- TPopupAlignment alignment = TPopupAlignment.bottomLeft,
- double offset = 8.0,
- TPopupAlignment secondaryAlignment = TPopupAlignment.rightTop,
- double secondaryOffset = 8.0,
- BoxConstraints boxConstraints = const BoxConstraints(minWidth: 175),
- double iconSize = 20.0,
- double arrowIconSize = 14.0,
- double gap = 10.0,
- double overlayElevation = 8.0,
- BorderRadius overlayBorderRadius = const BorderRadius.all(Radius.circular(8.0)),
- EdgeInsets overlayPadding = const EdgeInsets.symmetric(vertical: 8),
- EdgeInsets itemPadding = const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
- BorderRadius itemBorderRadius = const BorderRadius.all(Radius.circular(6.0)),
- double fontSize = 14.0,
- FontWeight fontWeight = FontWeight.w300,
- IconData? arrowIcon,
- IconData? dropdownIcon,
- IconData? expandIcon,
Implementation
const TMenuTheme({
required this.defaultColor,
required this.hoverColor,
required this.activeColor,
required this.activeBackgroundColor,
required this.borderColor,
this.animationDuration = const Duration(milliseconds: 200),
this.showDelay = const Duration(milliseconds: 25),
this.hideDelay = const Duration(milliseconds: 125),
this.alignment = TPopupAlignment.bottomLeft,
this.offset = 8.0,
this.secondaryAlignment = TPopupAlignment.rightTop,
this.secondaryOffset = 8.0,
this.boxConstraints = const BoxConstraints(minWidth: 175),
this.iconSize = 20.0,
this.arrowIconSize = 14.0,
this.gap = 10.0,
this.overlayElevation = 8.0,
this.overlayBorderRadius = const BorderRadius.all(Radius.circular(8.0)),
this.overlayPadding = const EdgeInsets.symmetric(vertical: 8),
this.itemPadding = const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
this.itemBorderRadius = const BorderRadius.all(Radius.circular(6.0)),
this.fontSize = 14.0,
this.fontWeight = FontWeight.w300,
this.arrowIcon,
this.dropdownIcon,
this.expandIcon,
});