AnimatedTextRender constructor

const AnimatedTextRender({
  1. Key? key,
  2. required String text,
  3. required List<CharacterAnimation> animations,
  4. required TextStyle textStyle,
  5. required TextDirection textDirection,
  6. TextAlign textAlign = TextAlign.start,
  7. StrutStyle? strutStyle,
  8. TextHeightBehavior? textHeightBehavior,
  9. 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,
});