AnimatedLoadingButton<T> class

Inheritance

Constructors

AnimatedLoadingButton.colorChangingButton({Key? key, required Future<T> onPress(), required dynamic onAsyncCallFinished(T), required Widget? buttonChild, required List<Color> colors, Duration animationDuration = ConstantValues.defaultDuration, BorderRadius? buttonRadius, BoxShadow? buttonShadow, double buttonWidth = ConstantValues.defaultWidth, double buttonHeight = ConstantValues.defaultHeight})
AnimatedLoadingButton.fadingAnimation({Key? key, required Future<T> onPress(), required dynamic onAsyncCallFinished(T), required Widget? buttonChild, Duration animationDuration = ConstantValues.defaultDuration, BorderRadius? buttonRadius, BoxShadow? buttonShadow, double buttonWidth = ConstantValues.defaultWidth, double buttonHeight = ConstantValues.defaultHeight, Color buttonColor = ConstantValues.defaultButtonColor})
AnimatedLoadingButton.iconRotation({Key? key, required Future<T> onPress(), required dynamic onAsyncCallFinished(T), required Widget? buttonIcon, required Text? buttonText, Color buttonColor = ConstantValues.defaultButtonColor, Duration animationDuration = ConstantValues.defaultDuration, BorderRadius? buttonRadius, BoxShadow? buttonShadow, double buttonWidth = ConstantValues.defaultWidth, double buttonHeight = ConstantValues.defaultHeight})
AnimatedLoadingButton.progressIndicator({Key? key, required Future<T> onPress(), required dynamic onAsyncCallFinished(T), required Widget? buttonChild, Duration animationDuration = ConstantValues.defaultDuration, BorderRadius? buttonRadius, BoxShadow? buttonShadow, double buttonWidth = ConstantValues.defaultWidth, double buttonHeight = ConstantValues.defaultHeight, Color buttonColor = ConstantValues.defaultButtonColor, Color? progressIndicatorColor = ConstantValues.defaultIndicatorColor, Color? progressIndicatorBackground = ConstantValues.defaultIndicatorBackground, double progressIndicatorSize = ConstantValues.defaultIndicatorSize})

Properties

animationDuration Duration
the animation duration applied in all animations except progress indicator animation
final
buttonChild Widget?
the widget that will be rendered inside the button
getter/setter pair
buttonColor Color
the button color, applied in all types except color changing animation button by default button color is Colors.blue
getter/setter pair
buttonHeight double
the button height by default it's set to 50
final
buttonIcon Widget?
required when using animatedIcon button the icon (widget) that will be drawn inside the button
getter/setter pair
buttonRadius BorderRadius?
button radius by default it's set to null
final
buttonShadow BoxShadow?
the button shadow, by default it's null
final
buttonText Text?
required when using animatedIcon button, the text that will be rendered inside the button
getter/setter pair
buttonWidth double
the button width by default the width is set to 200
final
colors List<Color>
list of colors that will be used in creating color changing button animation
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onAsyncCallFinished → dynamic Function(T)
callback invoked when onPress is finished required in all button types.
final
onPress Future<T> Function()
Future callback invoked when pressing the button required in all button types
final
progressIndicatorBackground Color?
the progress indicator background color by default it's set to Colors.white
getter/setter pair
progressIndicatorColor Color?
the progress indicator color by default it's set to Colors.blue
getter/setter pair
progressIndicatorSize double
the progress indicator height, by default it's set to 5
getter/setter pair
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() → _AnimatedLoadingButtonState
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