DDSMenuBar constructor
const
DDSMenuBar({
- Key? key,
- Widget? customMenu,
- double backgroundOpacity = 0.7,
- bool outsideClick = true,
- required String buttonLabel,
- required VoidCallback? buttonOnPressed,
- Color? buttonPrimaryButtonPressedColor = const Color(0xFFC44117),
- Color? buttonPrimaryButtonBackgroundColor = const Color(0xFFF15A29),
- Color? buttonDisabledPrimaryButtonBackgroundColor = const Color(0x66F15A29),
- Color? buttonPrimaryButtonTextColor = Colors.white,
- Color? buttonDisabledPrimaryButtonTextColor = Colors.white,
- Color? buttonSecondaryButtonPressedColor = const Color(0xFFFFF0EB),
- Color? buttonSecondaryButtonBackgroundColor = Colors.white,
- Color? buttonDisabledSecondaryButtonBackgroundColor = Colors.white,
- Color? buttonSecondaryButtonTextColor = const Color(0xFFF15A29),
- Color? buttonDisabledSecondaryButtonTextColor = const Color(0x66F15A29),
- Color? buttonSecondaryButtonBorderColor = const Color(0xFFF15A29),
- Color? buttonDisabledSecondaryButtonBorderColor = const Color(0x66FF835B),
- Color? buttonIconButtonBackgroundColor = const Color(0xFFC44117),
- Color? buttonIconButtonBorderColor = const Color(0xFFC44117),
- Color? buttonIconButtonPressedBackgroundColor = const Color(0xFFC44117),
- Color? buttonDisabledIconButtonBackgroundColor = const Color(0x66F15A29),
- Color? buttonDisabledIconButtonBorderColor = const Color(0xFFC44117),
- Color? buttonTertiaryButtonTextColor = const Color(0xFFF15A29),
- Color? buttonDisabledTertiaryButtonTextColor = const Color(0x66F15A29),
- Color? buttonTertiaryButtonPressedColor = const Color(0xFFFFF0EB),
- ButtonShape buttonShape = ButtonShape.rectangle,
- EdgeInsetsGeometry buttonPadding = const EdgeInsets.all(12.0),
- double buttonBorderWidth = 1.0,
- double buttonWidth = 100.0,
- double buttonMinWidth = 166.0,
- double buttonHeight = 32.0,
- ButtonSize buttonSize = ButtonSize.small,
- ButtonType buttonType = ButtonType.primary,
- bool buttonDisabled = false,
- bool buttonLoading = false,
- Widget? buttonStartIcon,
- Widget? buttonEndIcon,
- Widget? buttonIconButton,
- 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);