animatedBuilder method

  1. @override
Widget animatedBuilder(
  1. BuildContext context,
  2. Widget? child
)
override

Widget showing animated text, based on animation value(s).

Implementation

@override
Widget animatedBuilder(BuildContext context, Widget? child) {
  return ScaleTransition(
    scale: _scaleIn,
    child: Opacity(
      opacity: _fadeIn.value,
      child: textWidget(text),
    ),
  );
}