IconLoadingButton class

Inheritance

Constructors

IconLoadingButton({Key? key, Color? color = Colors.blue, double height = 55, double width = 225, required Widget child, required IconData iconData, required VoidCallback? onPressed, double loaderSize = 50.0, double loaderStrokeWidth = 1.5, bool animateOnTap = true, Color valueColor = Colors.blue, double borderRadius = 25, double elevation = 5, Duration duration = const Duration(milliseconds: 500), Curve curve = Curves.easeInOutCirc, Color? errorColor = Colors.redAccent, Color? successColor = Colors.green, Duration resetDuration = const Duration(seconds: 15), bool resetAfterDuration = false, IconData successIcon = Icons.check, IconData failedIcon = Icons.close, Curve completionCurve = Curves.elasticOut, Duration completionDuration = const Duration(milliseconds: 1000), Color? disabledColor, required IconButtonController controller, double spaceBetween = 10, Color iconColor = Colors.white})
Constructor
const

Properties

animateOnTap bool
Whether to trigger the animation on the tap event
final
borderRadius double
The radius of the button border
final
child Widget
Child widget
final
color Color?
Primary color or the button
final
completionCurve Curve
The duration of the success and failed animation
final
completionDuration Duration
final
controller IconButtonController
Required button controller
final
curve Curve
The curve of the shrink animation
final
disabledColor Color?
The color of the button when it is disabled
final
duration Duration
The duration of the button animation
final
elevation double
The elevation of the raised button
final
errorColor Color?
The color of the button when it is in the error state
final
failedIcon IconData
The icon for the failed state
final
hashCode int
The hash code for this object.
no setterinherited
height double
Vertical extent of the button
final
iconColor Color
Icon color for button
final
iconData IconData
Icon for button
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loaderSize double
Size of CircularProgressIndicator
final
loaderStrokeWidth double
Stroke width of CircularProgressIndicator
final
onPressed VoidCallback?
Callback when button is pressed
final
resetAfterDuration bool
Reset the animation after specified duration,
final
resetDuration Duration
Duration after which reset the button
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spaceBetween double
Spacing between icon and the child widget
final
successColor Color?
The color of the button when it is in the success state
final
successIcon IconData
The icon for the success state
final
valueColor Color
The color of the static icons
final
width double
Horizontal extent of the button
final

Methods

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