AnimateIcons class

This is the main class, you should only use this Widget to create your custom Animated Icon

Inheritance

Constructors

AnimateIcons({Key? key, required IconData startIcon, required IconData endIcon, required AnimateIconController controller, required bool onStartIconPress(), required bool onEndIconPress(), double size = 24.0, Duration duration = const Duration(milliseconds: 1000), Curve curve = Curves.easeInOut, bool clockwise = true, Color? startIconColor, Color? endIconColor, double amplitude = 180.0, double? splashRadius, Color splashColor = Colors.transparent, String? startTooltip, String? endTooltip})
Default constructor
const

Properties

amplitude double
The amplitude of the rotation animation in degrees
final
clockwise bool
Whether the animation runs in the clockwise or anticlockwise direction
final
controller AnimateIconController
The controller for the animations
final
curve Curve
The curve for the animation
final
duration Duration
The duration of the animation
final
endIcon IconData
The Icon that will be visible after animation ends
final
endIconColor Color?
The color to be used for the endIcon
final
endTooltip String?
This is the tooltip that will be used for the endIcon
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onEndIconPress bool Function()
The callback on endIcon Press
final
onStartIconPress bool Function()
The callback on startIcon Press
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size double
The size of the icons.
final
splashColor Color
This is the Color for the splash around the Icon, will be splashRadius wide.
final
splashRadius double?
This is the radius of the splash around the Icon, will be colored with splashColor.
final
startIcon IconData
The Icon that will be visible before animation starts
final
startIconColor Color?
The color to be used for the startIcon
final
startTooltip String?
This is the tooltip that will be used for the startIcon
final

Methods

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