CoderShakingIcon class

A widget that displays a shaking icon or image (SVG, raster, or IconData).

You can provide one of the following:

The icon/image will continuously shake along the given axis using the configured shake offset and animation duration.

Inheritance

Constructors

CoderShakingIcon({Key? key, String? svgAssetPath, String? imageAssetPath, IconData? iconData, Color? color, double size = 24, Duration duration = const Duration(milliseconds: 600), double shakeOffset = 4.0, Axis shakeDirection = Axis.horizontal, BlendMode blendMode = BlendMode.srcIn})
Creates a CoderShakingIcon widget.
const

Properties

blendMode BlendMode
The blend mode used when applying color to SVG or images.
final
color Color?
The color to apply to the icon, SVG, or image.
final
duration Duration
The duration for one complete shake animation cycle.
final
hashCode int
The hash code for this object.
no setterinherited
iconData IconData?
The Flutter IconData to render.
final
imageAssetPath String?
The path to the image asset to render (e.g., PNG/JPG).
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shakeDirection Axis
The direction of the shake animation.
final
shakeOffset double
The maximum distance (in pixels) the icon will move during the shake.
final
size double
The size of the icon/image in logical pixels.
final
svgAssetPath String?
The path to the SVG asset to render.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<CoderShakingIcon>
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, int wrapWidth = 65}) 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