Environment
master
Describe your question
I'm wondering if adding two variables animationController and appearanceController would give better control over animating the badges?
class Badge extends StatefulWidget {
const Badge({
...
this.animationController,
}) : super(key: key);
final AnimationController? animationController;
...
@override
void initState() {
super.initState();
_animationController = widget.animationController ??
AnimationController(
duration: widget.badgeAnimation.animationDuration,
reverseDuration: widget.badgeAnimation.animationDuration,
vsync: this,
);
...
}
}