build method
Implementation
Widget build(BuildContext context) {
return Stack(
children: [
Positioned.fill(
child: TweenAnimationBuilder(
tween: Tween<double>(begin: 0, end: _counter!.toDouble()),
duration: const Duration(milliseconds: 1000),
curve: Curves.bounceOut,
builder: (_, double ratio, __) {
return FractionallySizedBox(
heightFactor: (ratio / 100).clamp(0, 100).toDouble(),
alignment: Alignment.bottomCenter,
child: _Wave(
child: DifferenceMask(
color: _color,
),
),
);
},
),
),
],
);
}