How animations and AnimatedTextKit work together
masterSince Version 3, the library uses a decoupled architecture. AnimatedTextKit acts as the controller and orchestrator, while individual animation styles (like FadeAnimatedText, ScaleAnimatedText, etc.) extend from a base AnimatedText class.
This allows you to easily combine different animation styles within a single AnimatedTextKit widget by passing them into the animatedTexts list.
Note on Legacy Classes: You may see classes ending in ...AnimatedTextKit (e.g., FadeAnimatedTextKit). These are legacy wrappers for backward compatibility and are deprecated. You should use the new pattern: AnimatedTextKit containing FadeAnimatedText.
AnimatedTextKit(
animatedTexts: [
FadeAnimatedText(
'Fade First',
textStyle: TextStyle(fontSize: 32.0, fontWeight: FontWeight.bold),
),
ScaleAnimatedText(
'Then Scale',
textStyle: TextStyle(fontSize: 70.0, fontFamily: 'Canterbury'),
),
],
)