DDSButton class

Inheritance

Constructors

DDSButton.new({Key? key, required String label, required VoidCallback? onPressed, ButtonSize size = ButtonSize.small, ButtonType type = ButtonType.primary, ButtonShape shape = ButtonShape.rectangle, EdgeInsetsGeometry padding = const EdgeInsets.all(12.0), double? iconButtonSize = 32.0, Widget? startIcon, Widget? endIcon, Widget? iconButton, double? width, double? height, double minWidth = 0.0, double borderWidth = 1.0, bool disabled = false, bool loading = false, double loaderThickness = 4.0, double loaderLabelSpacing = 4.0, TextStyle? labelStyle, Color? iconButtonBorderColor = const Color(0xFFC44117), Color? iconButtonBackgroundColor = const Color(0xFFC44117), Color? disabledIconButtonBackgroundColor = const Color(0x66F15A29), Color? iconButtonPressedBackgroundColor = const Color(0xFFC44117), Color? disabledIconButtonBorderColor = const Color(0xFFC44117), Color? primaryButtonPressedColor = const Color(0xFFC44117), Color? secondaryButtonPressedColor = const Color(0xFFFFF0EB), Color? tertiaryButtonPressedColor = const Color(0xFFFFF0EB), Color? primaryButtonBackgroundColor = const Color(0xFFF15A29), Color? secondaryButtonBackgroundColor = Colors.white, Color? disabledPrimaryButtonBackgroundColor = const Color(0x66F15A29), Color? disabledSecondaryButtonBackgroundColor = Colors.white, Color? primaryButtonTextColor = Colors.white, Color? secondaryButtonTextColor = const Color(0xFFF15A29), Color? disabledPrimaryButtonTextColor = Colors.white, Color? tertiaryButtonTextColor = const Color(0xFFF15A29), Color? disabledTertiaryButtonTextColor = const Color(0x66F15A29), Color? disabledSecondaryButtonTextColor = const Color(0x66F15A29), Color? secondaryButtonBorderColor = const Color(0xFFF15A29), Color? disabledSecondaryButtonBorderColor = const Color(0x66FF835B), Color? labelPressedColor, EdgeInsetsGeometry iconPadding = const EdgeInsets.only(right: 8.0), EdgeInsetsGeometry labelPadding = const EdgeInsets.only(left: 8.0, right: 8.0), Color? startIconPressedColor, Color? startIconColor, Color? endIconPressedColor, Color? endIconColor, Color? iconButtonIconPressedColor, Color? iconButtonIconColor, Gradient? gradientBackgroundColor, List<BoxShadow>? boxShadow})
const

Properties

borderWidth double
final
boxShadow List<BoxShadow>?
final
disabled bool
final
disabledIconButtonBackgroundColor Color?
final
disabledIconButtonBorderColor Color?
final
disabledPrimaryButtonBackgroundColor Color?
final
disabledPrimaryButtonTextColor Color?
final
disabledSecondaryButtonBackgroundColor Color?
final
disabledSecondaryButtonBorderColor Color?
final
disabledSecondaryButtonTextColor Color?
final
disabledTertiaryButtonTextColor Color?
final
endIcon Widget?
final
endIconColor Color?
final
endIconPressedColor Color?
final
gradientBackgroundColor Gradient?
final
hashCode int
The hash code for this object.
no setterinherited
height double?
final
iconButton Widget?
final
iconButtonBackgroundColor Color?
final
iconButtonBorderColor Color?
final
iconButtonIconColor Color?
final
iconButtonIconPressedColor Color?
final
iconButtonPressedBackgroundColor Color?
final
iconButtonSize double?
final
iconPadding EdgeInsetsGeometry
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label String
final
labelPadding EdgeInsetsGeometry
final
labelPressedColor Color?
final
labelStyle TextStyle?
final
loaderLabelSpacing double
final
loaderThickness double
final
loading bool
final
minWidth double
final
onPressed VoidCallback?
final
padding EdgeInsetsGeometry
final
primaryButtonBackgroundColor Color?
final
primaryButtonPressedColor Color?
final
primaryButtonTextColor Color?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondaryButtonBackgroundColor Color?
final
secondaryButtonBorderColor Color?
final
secondaryButtonPressedColor Color?
final
secondaryButtonTextColor Color?
final
shape ButtonShape
final
size ButtonSize
final
startIcon Widget?
final
startIconColor Color?
final
startIconPressedColor Color?
final
tertiaryButtonPressedColor Color?
final
tertiaryButtonTextColor Color?
final
type ButtonType
final
width double?
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _ButtonState
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