AnimatedCircleText class

A widget that animates a circle effect around text.

Supports two modes:

  • Organic Mode: Wavy, hand-drawn effect.
  • Plain Mode: Smooth, structured animation.

Features:

  • Configurable Mode: Choose plain or organic animation.
  • Realistic Hand-Drawn Effect: In organic mode, the animation has human-like imperfections.
  • Smooth Motion: In plain mode, the circle is drawn precisely.

Example Usage:

AnimatedCircleText(
  text: "Flutter",
  circleColor: Colors.red,
  textStyle: TextStyle(fontSize: 24, color: Colors.black),
  duration: Duration(seconds: 2),
  startDelay: Duration(seconds: 1),
  animationMode: SketchyAnimationMode.organic, // or SketchyAnimationMode.plain
)
Inheritance

Constructors

AnimatedCircleText.new({Key? key, required String text, required Color circleColor, required TextStyle textStyle, Duration duration = const Duration(seconds: 2), Duration startDelay = Duration.zero, SketchyAnimationMode animationMode = SketchyAnimationMode.organic})
Creates an animated sketchy or structured circle effect.
const

Properties

animationMode SketchyAnimationMode
Defines whether the animation is plain or organic.
final
circleColor Color
The color of the animated circle.
final
duration Duration
The total duration of the animation.
final
hashCode int
The hash code for this object.
no setterinherited
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
startDelay Duration
The delay before the animation starts.
final
text String
The text that will be circled.
final
textStyle TextStyle
The style of the text inside the circle.
final

Methods

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