AnimatedTextRender constructor
const
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.
text — the full text string (required).
animations — per-character animation data (required, same length as text).
textStyle — base style for rendering (required).
textDirection — layout direction (required).
textAlign — horizontal alignment.
strutStyle — optional strut for line height.
textHeightBehavior — optional height behavior override.
textWidthBasis — how text width is computed.
Implementation
const AnimatedTextRender({
super.key,
required this.text,
required this.animations,
required this.textStyle,
required this.textDirection,
this.textAlign = TextAlign.start,
this.strutStyle,
this.textHeightBehavior,
this.textWidthBasis = TextWidthBasis.parent,
});