animatedBuilder method
Widget showing animated text, based on animation value(s).
Implementation
@override
Widget animatedBuilder(BuildContext context, Widget? child) {
return ScaleTransition(
scale: _scaleIn.value != 1.0 ? _scaleIn : _scaleOut,
child: Opacity(
opacity: _fadeIn.value != 1.0 ? _fadeIn.value : _fadeOut.value,
child: textWidget(text),
),
);
}