AnimatedLoadingButton<T> class
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