AnimatedIconButton class

Inheritance

Constructors

AnimatedIconButton({Key? key, double size = 30, int initialIcon = 0, required List<AnimatedIconItem> icons, Function? onPressed, AnimationController? animationController, AnimationDirection animationDirection = const AnimationDirection.bounce(), Duration? duration = const Duration(milliseconds: 200), EdgeInsets padding = const EdgeInsets.all(8.0), Color? focusColor, Color? hoverColor, Color? highlightColor, Color? splashColor, Color? disabledColor, FocusNode? focusNode, bool autofocus = false, bool enableFeedback = true, BoxConstraints? constraints, VisualDensity? visualDensity, Alignment alignment = Alignment.center, double? splashRadius})

Properties

alignment Alignment
Defines how the icon is positioned within the IconButton.
final
animationController AnimationController?
The custom AnimationController of the AnimatedIconButton.
final
animationDirection AnimationDirection
The AnimationDirection of the AnimatedIconButton.
final
autofocus bool
True if this widget will be selected as the initial focus when no other node in its scope is currently focused.
final
constraints BoxConstraints?
Optional size constraints for the button.
final
disabledColor Color?
The color to use for the icon inside the button, if the icon is disabled. Defaults to the ThemeData.disabledColor of the current Theme.
final
duration Duration?
Animation time of the AnimatedIconButton.
final
enableFeedback bool
Whether detected gestures should provide acoustic and/or haptic feedback.
final
focusColor Color?
The color for the button's icon when it has the input focus.
final
focusNode FocusNode?
An optional focus node to use as the focus node for this widget.
final
hashCode int
The hash code for this object.
no setterinherited
highlightColor Color?
The secondary color of the button when the button is in the down (pressed) state. The highlight color is represented as a solid color that is overlaid over the button color (if any). If the highlight color has transparency, the button color will show through. The highlight fades in quickly as the button is held down.
final
hoverColor Color?
The color for the button's icon when a pointer is hovering over it.
final
icons List<AnimatedIconItem>
The AnimatedIcon of the AnimatedIconButton
final
initialIcon int
The index of icons to start with
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onPressed Function?
The callback that is called when the button is tapped or otherwise activated.
final
padding EdgeInsets
The padding around the button's icon. The entire padded icon will react to input gestures.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size double
The size of the AnimatedIconButton.
final
splashColor Color?
The primary color of the button when the button is in the down (pressed) state. The splash is represented as a circular overlay that appears above the highlightColor overlay. The splash overlay has a center point that matches the hit point of the user touch event. The splash overlay will expand to fill the button area if the touch is held for long enough time. If the splash color has transparency then the highlight and button color will show through.
final
splashRadius double?
The splash radius.
final
visualDensity VisualDensity?
Defines how compact the icon button's layout will be.
final

Methods

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