Closed behiunforgiven closed 2 years ago
You need to pass IconType.continueAnimation in iconType parameter.
AnimateIcon(
key: UniqueKey(),
onTap: () {},
iconType: IconType.continueAnimation,
height: 70,
width: 70,
color: Color.fromRGBO(
Random.secure().nextInt(255),
Random.secure().nextInt(255),
Random.secure().nextInt(255),
1),
animateIcon: AnimateIcons.bell ,
),
I think this code implements playing animation from the beginning. I want a stopped animation, but when I tap, it starts playing.
You have to change the property iconType
from onlyIcon
to continueAnimation
at run time.
Don't forget to remove UniqueKey
in constrture.
How to implement continue animation on click?