icon_animated
2.0.0, released 2 months ago by tyrannoapartment.com
Animated outline icons with forward/reverse transitions and configurable appearance
What it does
Provides 14 built‑in outline icons that animate between active and inactive states. The widget handles animation timing, curve, stroke width, and theme inheritance, and supports semantic labels and reduced motion.
AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need lightweight animated icons without external dependencies
- You want to customize icon size, color, stroke width, and animation curve
- You prefer a single widget that manages its own animation controller
Skip it when
- You require a large icon set or custom shapes not in the 14 provided
- You need to animate icons with complex custom paths or external SVGs
- You are building a highly performance‑critical UI where every animation frame matters
Strengths
- Zero external dependencies
- Configurable animation duration, curve, and stroke width
- Inherits IconTheme and supports semantic labels
- Handles reduced motion automatically
Weaknesses
- Limited to 14 predefined icons
- No support for custom icon shapes
- Animation controller is internal, not exposed for advanced control
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Add dependency in pubspec and import package; no permissions or build_runner needed
import 'package:flutter/material.dart';
import 'package:icon_animated/icon_animated.dart';
IconAnimated(
active: isSaved,
size: 48,
iconType: IconType.check,
semanticLabel: 'Saved',
)Alternatives
Packages that do the same job and could replace icon_animated.
- lottie
Use for complex vector animations and full control over frames
96Compare - flutter_animate
Provides a broader set of animation helpers for widgets
70Compare
Works with
Packages commonly used together with icon_animated: ones it builds on, ones built on it, and its own family.