AnimatedTextRender class
Renders animated text by placing each character at its measured position with per-character transforms (blur, opacity, translate, scale, rotate, clip).
Uses LayoutBuilder and TextPainter to measure character positions from the styled full text, then overlays individual Text widgets with transforms derived from each CharacterAnimation.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- AnimatedTextRender
Constructors
-
AnimatedTextRender({Key? key, required String text, required List<
CharacterAnimation> animations, required TextStyle textStyle, required TextDirection textDirection, TextAlign textAlign = TextAlign.start, StrutStyle? strutStyle, TextHeightBehavior? textHeightBehavior, TextWidthBasis textWidthBasis = TextWidthBasis.parent}) -
Creates an AnimatedTextRender to paint animated character positions.
const
Properties
-
animations
→ List<
CharacterAnimation> -
Per-character animation states (must match text length).
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
- strutStyle → StrutStyle?
-
Optional strut style for consistent line height.
final
- text → String
-
The full text string to render.
final
- textAlign → TextAlign
-
Horizontal text alignment.
final
- textDirection → TextDirection
-
Text direction for layout.
final
- textHeightBehavior → TextHeightBehavior?
-
Optional text height behavior override.
final
- textStyle → TextStyle
-
Base text style applied to every character.
final
- textWidthBasis → TextWidthBasis
-
How text width is computed relative to the parent.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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