LoadingButton class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- LoadingButton
Constructors
- LoadingButton({Key? key, double height = 55, double width = 225, Widget? child, IconData? iconData, required VoidCallback? onPressed, required LoadingButtonController controller, double loaderSize = 50.0, double loaderStrokeWidth = 1.5, bool animateOnTap = true, double borderRadius = 25, double elevation = 5, Duration duration = const Duration(milliseconds: 500), Curve curve = Curves.easeInOutCirc, Color? primaryColor, Color? errorColor = Colors.redAccent, Color? successColor = Colors.green, Color? shadowColor, Color? valueColor, Color? disabledColor, Color? iconColor, 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), double spaceBetween = 10, bool showBox = true})
- Constructor for the LoadingButton widget.
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
- completionCurve → Curve
-
The curve of the completion animation
final
- completionDuration → Duration
-
The duration of the success and failed animation
final
- controller → LoadingButtonController
-
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
- primaryColor → Color?
-
Primary color or the button
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
- shadowColor → Color?
-
The color of the shadow of the button
final
- showBox → bool
-
Show background box for the button
Default is true
final
- 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(
) → LoadingButtonState -
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