MA
Size: a a a
MA
T
_animationController = new AnimationController(vsync: this,
duration: new Duration(milliseconds: 300));
ColorTween colorTween = ColorTween(begin: Colors.transparent, end: Colors.white);
animation = colorTween.animate(_animationController)
_animationController.reverse();
addStatusListener
через if (status == AnimationStatus.dismissed)
(убираю сам виджет, чтобы тап на него не проходил)_animationController.forward()
и` _animationController.reverse()` будут выполняться не до конца и работать вопреки задумке. Тогда я сделал на всех кнопках проверку, _animationController.status == AnimationStatus.completed
_animationController.status == AnimationStatus.dismissed
EK
EK
EK
P
P
P
BB
Ю
P
P
Ю
P
АК
В
Ю
HE
V
P