DDSMenuBar class

Inheritance

Constructors

DDSMenuBar.new({Key? key, double menuWidth = 250, double menuHeight = 200, double? menuBorderRadius = 10, double menuOffset = 66, 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})
const

Properties

backgroundOpacity double
final
buttonBorderWidth double
final
buttonDisabled bool
final
buttonDisabledIconButtonBackgroundColor Color?
final
buttonDisabledIconButtonBorderColor Color?
final
buttonDisabledPrimaryButtonBackgroundColor Color?
final
buttonDisabledPrimaryButtonTextColor Color?
final
buttonDisabledSecondaryButtonBackgroundColor Color?
final
buttonDisabledSecondaryButtonBorderColor Color?
final
buttonDisabledSecondaryButtonTextColor Color?
final
buttonDisabledTertiaryButtonTextColor Color?
final
buttonEndIcon Widget?
final
buttonHeight double
final
buttonIconButton Widget?
final
buttonIconButtonBackgroundColor Color?
final
buttonIconButtonBorderColor Color?
final
buttonIconButtonPressedBackgroundColor Color?
final
buttonIconButtonSize double?
final
buttonLabel String
final
buttonLoading bool
final
buttonMinWidth double
final
buttonOnPressed VoidCallback?
final
buttonPadding EdgeInsetsGeometry
final
buttonPrimaryButtonBackgroundColor Color?
final
buttonPrimaryButtonPressedColor Color?
final
buttonPrimaryButtonTextColor Color?
final
buttonSecondaryButtonBackgroundColor Color?
final
buttonSecondaryButtonBorderColor Color?
final
buttonSecondaryButtonPressedColor Color?
final
buttonSecondaryButtonTextColor Color?
final
buttonShape ButtonShape
final
buttonSize ButtonSize
final
buttonStartIcon Widget?
final
buttonTertiaryButtonPressedColor Color?
final
buttonTertiaryButtonTextColor Color?
final
buttonType ButtonType
final
buttonWidth double
final
customMenu Widget?
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
final
final
final
final
outsideClick bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _MenuBarState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited