Skip to content
pubscout

gradient_icon

2.1.0, released 7 months ago by mohamedashraf.in

Applies linear, radial, and sweep gradient effects to Flutter icons.

WASM-ready
$ flutter pub add gradient_icon
Source repository

What it does

Provides a GradientIcon widget that allows developers to easily apply customizable gradient effects to standard icons. Supports control over colors, directions, and various gradient types like linear, radial, and sweep.

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

Use it when

  • You need to display icons styled with custom gradients instead of a solid color.
  • You want support for linear, radial, and sweep gradients on your UI icons.

Skip it when

  • You only need standard single-color icons supported natively by Icon.

Strengths

  • Supports multiple gradient types including linear, radial, and sweep gradients.
  • Extremely simple API focused entirely on gradient icons.

Weaknesses

  • Very narrow scope limited strictly to icons with gradients.
  • Not documented for non-icon widgets.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
GradientIcon(
  icon: Icons.star,
  gradient: LinearGradient(
    colors: [Colors.red, Colors.blue],
    begin: Alignment.topLeft,
    end: Alignment.bottomRight,
  ),
  size: 30,
)

Alternatives

Packages that do the same job and could replace gradient_icon.