like_animated_icon 0.0.4
like_animated_icon: ^0.0.4 copied to clipboard
Like animation for any icon you wish for.
Features #
Animated icon that you will be able to add to your applications for getting a nice smooth effect for your likes or any other icon you wish to get a liked animation over.
Getting started #
- Import the package into your application
flutter pub add like_animated_icon
Usage #
For using this package you need to instantiate the widget like this.
LikeEffect(
iconData: Icons.thumb_up_sharp,
action: () {},
reverseAction: () {},
);
Parameters #
- iconData: Here goes the icon you would like the animation to be performed over with.
- action: The function to be executed after the icon is pressed.
- reverAction: Action to be executed if there is any reverse action when pressing over an already pressed icon.
- Optional iconSize:Desire size of the icon.
- Optional initialColor: Color to be the initial color of the icon.
- Optional pressedColor: Final color after the icon was already animated.
Additional information #
If you need any new features or identify any errors just raise an issue at github.