build method
Implementation
Widget build(BuildContext context) {
return Stack(
children: [
for (int i = 0; i < _counter!; i++)
Positioned.fill(
child: TweenAnimationBuilder(
tween: Tween<double>(begin: 0, end: 1),
duration: const Duration(milliseconds: 500),
curve: Curves.easeIn,
builder: (_, double opacity, __) {
return CustomPaint(
painter: _CreaturePainter(
_controller,
_addPointAnimation,
i,
_colors[i % _colors.length].withOpacity(opacity),
_counter,
_blend,
),
);
},
),
),
],
);
}