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. Duration animationDuration = const Duration(milliseconds: 200),
  7. Duration showDelay = const Duration(milliseconds: 25),
  8. Duration hideDelay = const Duration(milliseconds: 125),
  9. TPopupAlignment alignment = TPopupAlignment.bottomLeft,
  10. double offset = 8.0,
  11. TPopupAlignment secondaryAlignment = TPopupAlignment.rightTop,
  12. double secondaryOffset = 8.0,
  13. BoxConstraints boxConstraints = const BoxConstraints(minWidth: 175),
  14. double iconSize = 20.0,
  15. double arrowIconSize = 14.0,
  16. double gap = 10.0,
  17. double overlayElevation = 8.0,
  18. BorderRadius overlayBorderRadius = const BorderRadius.all(Radius.circular(8.0)),
  19. EdgeInsets overlayPadding = const EdgeInsets.symmetric(vertical: 8),
  20. EdgeInsets itemPadding = const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
  21. BorderRadius itemBorderRadius = const BorderRadius.all(Radius.circular(6.0)),
  22. double fontSize = 14.0,
  23. FontWeight fontWeight = FontWeight.w300,
  24. IconData? arrowIcon,
  25. IconData? dropdownIcon,
  26. 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,
});