Skip to content
pubscout

advanced_icon

0.1.2, released 5 years ago by devtonium.com

Flutter widget for animated icon transitions with gradients and opacity

WASM-ready
$ flutter pub add advanced_icon
Source repository

What it does

AdvancedIcon provides a single widget that can display an icon with optional gradient or opacity and transition to a secondary icon using various animation effects. It exposes properties for color, gradient, opacity, effect, duration and state management hooks.

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

Use it when

  • You need a simple icon that changes with a smooth animation when a state changes
  • You want to apply gradient or opacity to an icon without custom painting
  • You want to expose a secondary icon for user interaction

Skip it when

  • You need complex state management beyond simple setState or provider
  • You require icon animations that are not covered by the built‑in effects

Strengths

  • Built‑in animation effects (spin, bubble, fade, flip, etc.)
  • Supports gradient and opacity directly on icons
  • Easy to use API, no code generation required

Weaknesses

  • Limited to icon widgets, no support for custom shapes
  • No documentation on performance impact for many icons
  • No built‑in state management integration beyond basic patterns

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Add dependency and import package

import 'package:advanced_icon/advanced_icon.dart';

AdvancedIcon(
  icon: Icons.add,
  secondaryIcon: Icons.check,
  state: _state,
  effect: AdvancedIconEffect.spin,
  duration: Duration(milliseconds: 700),
  color: Colors.blue,
  secondaryColor: Colors.green,
  opacity: 0.8,
  gradient: const LinearGradient(colors: [Colors.red, Colors.white]),
)

Alternatives

Packages that do the same job and could replace advanced_icon.