DDSMenuBar constructor

const DDSMenuBar({
  1. Key? key,
  2. double menuWidth = 250,
  3. double menuHeight = 200,
  4. double? menuBorderRadius = 10,
  5. double menuOffset = 66,
  6. Widget? customMenu,
  7. double backgroundOpacity = 0.7,
  8. bool outsideClick = true,
  9. required String buttonLabel,
  10. required VoidCallback? buttonOnPressed,
  11. Color? buttonPrimaryButtonPressedColor = const Color(0xFFC44117),
  12. Color? buttonPrimaryButtonBackgroundColor = const Color(0xFFF15A29),
  13. Color? buttonDisabledPrimaryButtonBackgroundColor = const Color(0x66F15A29),
  14. Color? buttonPrimaryButtonTextColor = Colors.white,
  15. Color? buttonDisabledPrimaryButtonTextColor = Colors.white,
  16. Color? buttonSecondaryButtonPressedColor = const Color(0xFFFFF0EB),
  17. Color? buttonSecondaryButtonBackgroundColor = Colors.white,
  18. Color? buttonDisabledSecondaryButtonBackgroundColor = Colors.white,
  19. Color? buttonSecondaryButtonTextColor = const Color(0xFFF15A29),
  20. Color? buttonDisabledSecondaryButtonTextColor = const Color(0x66F15A29),
  21. Color? buttonSecondaryButtonBorderColor = const Color(0xFFF15A29),
  22. Color? buttonDisabledSecondaryButtonBorderColor = const Color(0x66FF835B),
  23. Color? buttonIconButtonBackgroundColor = const Color(0xFFC44117),
  24. Color? buttonIconButtonBorderColor = const Color(0xFFC44117),
  25. Color? buttonIconButtonPressedBackgroundColor = const Color(0xFFC44117),
  26. Color? buttonDisabledIconButtonBackgroundColor = const Color(0x66F15A29),
  27. Color? buttonDisabledIconButtonBorderColor = const Color(0xFFC44117),
  28. Color? buttonTertiaryButtonTextColor = const Color(0xFFF15A29),
  29. Color? buttonDisabledTertiaryButtonTextColor = const Color(0x66F15A29),
  30. Color? buttonTertiaryButtonPressedColor = const Color(0xFFFFF0EB),
  31. ButtonShape buttonShape = ButtonShape.rectangle,
  32. EdgeInsetsGeometry buttonPadding = const EdgeInsets.all(12.0),
  33. double buttonBorderWidth = 1.0,
  34. double buttonWidth = 100.0,
  35. double buttonMinWidth = 166.0,
  36. double buttonHeight = 32.0,
  37. ButtonSize buttonSize = ButtonSize.small,
  38. ButtonType buttonType = ButtonType.primary,
  39. bool buttonDisabled = false,
  40. bool buttonLoading = false,
  41. Widget? buttonStartIcon,
  42. Widget? buttonEndIcon,
  43. Widget? buttonIconButton,
  44. double? buttonIconButtonSize = 32.0,
})

Implementation

const DDSMenuBar({
  Key? key,
  this.menuWidth = 250,
  this.menuHeight = 200,
  this.menuBorderRadius = 10,
  this.menuOffset = 66,
  this.customMenu,
  this.backgroundOpacity = 0.7,
  this.outsideClick = true,
  required this.buttonLabel,
  required this.buttonOnPressed,
  this.buttonPrimaryButtonPressedColor = const Color(0xFFC44117),
  this.buttonPrimaryButtonBackgroundColor = const Color(0xFFF15A29),
  this.buttonDisabledPrimaryButtonBackgroundColor = const Color(0x66F15A29),
  this.buttonPrimaryButtonTextColor = Colors.white,
  this.buttonDisabledPrimaryButtonTextColor = Colors.white,
  this.buttonSecondaryButtonPressedColor = const Color(0xFFFFF0EB),
  this.buttonSecondaryButtonBackgroundColor = Colors.white,
  this.buttonDisabledSecondaryButtonBackgroundColor = Colors.white,
  this.buttonSecondaryButtonTextColor = const Color(0xFFF15A29),
  this.buttonDisabledSecondaryButtonTextColor = const Color(0x66F15A29),
  this.buttonSecondaryButtonBorderColor = const Color(0xFFF15A29),
  this.buttonDisabledSecondaryButtonBorderColor = const Color(0x66FF835B),
  this.buttonIconButtonBackgroundColor = const Color(0xFFC44117),
  this.buttonIconButtonBorderColor = const Color(0xFFC44117),
  this.buttonIconButtonPressedBackgroundColor = const Color(0xFFC44117),
  this.buttonDisabledIconButtonBackgroundColor = const Color(0x66F15A29),
  this.buttonDisabledIconButtonBorderColor = const Color(0xFFC44117),
  this.buttonTertiaryButtonTextColor = const Color(0xFFF15A29),
  this.buttonDisabledTertiaryButtonTextColor = const Color(0x66F15A29),
  this.buttonTertiaryButtonPressedColor = const Color(0xFFFFF0EB),
  this.buttonShape = ButtonShape.rectangle,
  this.buttonPadding = const EdgeInsets.all(12.0),
  this.buttonBorderWidth = 1.0,
  this.buttonWidth = 100.0,
  this.buttonMinWidth = 166.0,
  this.buttonHeight = 32.0,
  this.buttonSize = ButtonSize.small,
  this.buttonType = ButtonType.primary,
  this.buttonDisabled = false,
  this.buttonLoading = false,
  this.buttonStartIcon,
  this.buttonEndIcon,
  this.buttonIconButton,
  this.buttonIconButtonSize = 32.0,
}) : super(key: key);