TMenuTheme constructor

const TMenuTheme({
  1. required Color defaultColor,
  2. required Color hoverColor,
  3. required Color activeColor,
  4. required Color activeBackgroundColor,
  5. required Color borderColor,
  6. Color? hoverBackgroundColor,
  7. Duration animationDuration = const Duration(milliseconds: 200),
  8. Duration showDelay = const Duration(milliseconds: 25),
  9. Duration hideDelay = const Duration(milliseconds: 125),
  10. TPopupAlignment alignment = TPopupAlignment.bottomLeft,
  11. double offset = 8.0,
  12. TPopupAlignment secondaryAlignment = TPopupAlignment.rightTop,
  13. double secondaryOffset = 8.0,
  14. BoxConstraints boxConstraints = const BoxConstraints(minWidth: 175),
  15. double iconSize = 20.0,
  16. double arrowIconSize = 14.0,
  17. double gap = 10.0,
  18. double overlayElevation = 8.0,
  19. BorderRadius overlayBorderRadius = const BorderRadius.all(Radius.circular(8.0)),
  20. EdgeInsets overlayPadding = const EdgeInsets.symmetric(vertical: 8),
  21. EdgeInsets itemPadding = const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
  22. BorderRadius itemBorderRadius = const BorderRadius.all(Radius.circular(6.0)),
  23. double fontSize = 14.0,
  24. FontWeight fontWeight = FontWeight.w300,
  25. IconData? arrowIcon,
  26. IconData? dropdownIcon,
  27. IconData? expandIcon,
})

Implementation

const TMenuTheme({
  required this.defaultColor,
  required this.hoverColor,
  required this.activeColor,
  required this.activeBackgroundColor,
  required this.borderColor,
  this.hoverBackgroundColor,
  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,
});