3

I know that icon use AnimatedIcon from Flutter package. But the available icons doesn't fit my needs. What i want is to build/draw my own AninimatedIcon (from default IconData or not). Is there any way to achieve this?

Please see an example Here

2 Answers 2

2

Just add the plugin, set the dependencies, imports and use it like this:

AnimateIcons(
startIcon: Icons.add,
endIcon: Icons.close,
size: 60.0,
onStartIconPress: () {
    print("Clicked on Add Icon");
},
onEndIconPress: () {
    print("Clicked on Close Icon");
},
duration: Duration(milliseconds: 500),
color: Theme.of(context).primaryColor,
clockwise: false,

),

Sign up to request clarification or add additional context in comments.

Comments

1

used flare for icon animation https://www.2dimensions.com/

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.