Skip to content
pubscout

animated_icon

1.0.0, released 11 months ago by mindinventory.com

An animated icon package supporting customization like color, animation, hover, and callbacks.

WASM-ready
$ flutter pub add animated_icon
Source repository

What it does

Provides an AnimateIcon widget that renders customizable animated icons using Lottie animations behind the scenes. It supports interactive triggers like onTap and onHover, along with adjustable height, width, and color parameters.

AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to display animated icons using predefined Lottie-based assets.
  • You need tap and hover callbacks attached to animated icons.
  • You require basic styling customizations like color and sizing on animated icons.

Skip it when

  • You need complex physics-based motion or completely custom vector animations.
  • You are already using an extensive animation suite like flutter_animate or rive and want to avoid extra dependencies.

Strengths

  • Includes built-in support for tap and hover callbacks.
  • Simple API with customizable color, height, and width parameters.
  • Cross-platform support for Android, iOS, Web, Windows, macOS, and Linux.

Weaknesses

  • Depends on the lottie package, which might increase app bundle size.
  • Limited to predefined icon enums (AnimateIcons).

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Not documented

AnimateIcon(
        key: UniqueKey(),
        onTap: () {},
        iconType: IconType.continueAnimation,
        height: 70,
        width: 70,
        color: Colors.blue,
        animateIcon: AnimateIcons.bell,
      )

Alternatives

Packages that do the same job and could replace animated_icon.

  • flutter_animate

    If you want a powerful, flexible animation library for animating any Flutter widget rather than being restricted to specific animated icons.

  • rive

    If you prefer interactive vector animations and state machines over Lottie-based icons.

Works with

Packages commonly used together with animated_icon: ones it builds on, ones built on it, and its own family.