animate_icons
2.0.0, released 6 years ago by an unverified publisher
Animates between two icons with customizable colors, size, and tooltips.
WASM-ready
What it does
Provides a widget that smoothly transitions between a start and an end icon. A controller can trigger the animation programmatically or via press callbacks.
AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a simple toggle animation between two icons (e.g., add/close).
- You want built‑in support for start/end tooltips and separate colors.
Skip it when
- You require complex vector or timeline animations (Lottie, Rive).
- You need animation curves beyond the default or multi‑step sequences.
Strengths
- Very small API focused on icon transitions.
- Supports both press‑based and controller‑driven animation.
- Null‑safe and works on all Flutter platforms.
Weaknesses
- Limited to icon‑to‑icon animation only.
- No built‑in custom curves or advanced animation sequencing.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:flutter/material.dart';
import 'package:animate_icons/animate_icons.dart';
class Demo extends StatefulWidget { @override _DemoState createState()=>_DemoState(); }
class _DemoState extends State<Demo>{
final controller = AnimateIconController();
@override Widget build(BuildContext context){
return Scaffold(
body: Center(
child: AnimateIcons(
startIcon: Icons.add,
endIcon: Icons.close,
controller: controller,
size: 60,
onStartIconPress:()=>true,
onEndIconPress:()=>true,
startIconColor: Colors.deepPurple,
endIconColor: Colors.deepOrange,
),
),
);
}
}Alternatives
Packages that do the same job and could replace animate_icons.
- flutter_animate
General purpose animation library that can also animate icons with more control.
70Compare - lottie
For complex, vector‑based animations beyond simple icon swaps.
96Compare - animate_do
Provides quick declarative animations, including simple icon fades.
71Compare