RoundedLoadingButtonGradient class

Inheritance

Constructors

RoundedLoadingButtonGradient({required RoundedLoadingButtonGradientController controller, String label = 'This is button', TextStyle style = const TextStyle(), double height = 45, Color? backgroundColor, Color? overlayColor, Color? shadowColor, double? elevation, double borderRadius = 15, int durationAnimation = 800, bool disableButton = false, Function? onTap, double sizeIconLeft = 24, double sizeIconRight = 24, IconData? iconLeft, IconData? iconRight, String? iconPathLeft, String? iconPathRight, double? paddingIconLeftLabel, double? paddingIconRightLabel, Color? colorIconLeft, Color? colorIconRight, double sizeLoading = 18, double strokeWidth = 2, Color colorLoading = Colors.white, Widget? widgetLoading, Color colorIconError = Colors.white, Color colorIconSucess = Colors.white, Color colorBackgroundError = Colors.red, Color colorBackgroundSuccess = Colors.green, Gradient? gradient, Color? disableColor, Gradient? gradientSucess, Gradient? gradientError, IconData? iconSuccess = Icons.check, IconData? iconError = Icons.error, double? sizeSuccess = 24, double? sizeError = 24})
const

Properties

backgroundColor Color?
background color button, default: primary color
final
borderRadius double
border radius, default 45/2
final
colorBackgroundError Color
final
colorBackgroundSuccess Color
final
colorIconError Color
final
colorIconLeft Color?
final
colorIconRight Color?
final
colorIconSucess Color
final
colorLoading Color
final
controller RoundedLoadingButtonGradientController
Button controller, now required
final
disableButton bool
enable button = false is on tap not available
final
disableColor Color?
if disableButton = true,
final
durationAnimation int
duration animation
final
elevation double?
final
gradient Gradient?
if gradient != null, use gradient color into button
final
gradientError Gradient?
gradientError != null, background icon error is gradient
final
gradientSucess Gradient?
gradientSucess != null, background icon success is gradient
final
hashCode int
The hash code for this object.
no setterinherited
height double
default 45
final
iconError IconData?
final
iconLeft IconData?
example Icons.add,
final
iconPathLeft String?
path svg, png, in assets, example: 'assets/images/icon.png'
final
iconPathRight String?
path svg, png, in assets, example: 'assets/images/icon.png'
final
iconRight IconData?
example Icons.add,
final
iconSuccess IconData?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label String
child label button
final
onTap Function?
on tap button, is null button disable
final
overlayColor Color?
hover color, default: hover color
final
paddingIconLeftLabel double?
padding beetwen icon (p) label
final
paddingIconRightLabel double?
padding beetwen label (p) icon
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowColor Color?
shadow color is long press, default shadowColor
final
sizeError double?
final
sizeIconLeft double
size icon left
final
sizeIconRight double
size icon right
final
sizeLoading double
Size(size, size)
final
sizeSuccess double?
final
strokeWidth double
final
style TextStyle
style label
final
widgetLoading Widget?
size widget loading should size = 20 if null show loading default CircularProgressIndicator
final

Methods

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