RotatingIconButton class

RotatingIconButton Widget

Flutter package for rotating and smoothly animating any child widget of its own when tapped.

The package has been written solely in Dart language.

Inheritance

Constructors

RotatingIconButton({Key? key, required void onTap(), required Widget child, EdgeInsetsGeometry? padding, RotateType rotateType = RotateType.quarter, bool clockwise = true, Duration duration = const Duration(milliseconds: 300), Curve curve = Curves.easeInOut, ButtonShape shape = ButtonShape.rectangle, double elevation = 0.0, Color? shadowColor, Color? background, double? borderRadius})
Create RotatingIconButton widget.
const

Properties

background Color?
A variable to set the background color of the button.
final
borderRadius double?
A variable to set the borderRadius of the button.
final
child Widget
This widget will be displayed inside the button.
final
clockwise bool
A variable to determine the direction of the animation.
final
curve Curve
A variable to set the curve of the animation.
final
duration Duration
A variable to determine the duration of the animation.
final
elevation double
A variable to set the elevation of the button.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onTap → void Function()
onTap Function that provides you the ability to control tap action.
final
padding EdgeInsetsGeometry?
Add padding to the child widget to customize the button.
final
rotateType RotateType
Assign a rotateType to set the rotation type of the child widget.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowColor Color?
A variable to set the shadowColor of the button.
final
shape ButtonShape
Assign a shape to set the shape of the button.
final

Methods

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