gradient_icon library

A Flutter library for creating gradient icons.

The gradient_icon library provides a GradientIcon widget that allows you to display icons with a gradient effect. It utilizes the CustomPaint widget to paint the icon with a gradient shader, providing a visually appealing representation.

Usage:

  1. Import the gradient_icon library.
  2. Use the GradientIcon widget by providing the icon, gradient, and optionally the size parameters.
    • icon: The IconData representing the desired icon.
    • gradient: The Gradient object defining the gradient colors and stops.
    • size: The size of the icon (default is 25).
  3. Embed the GradientIcon widget within your UI to display the gradient icon.

Note: This library requires the flutter package.

Classes

GradientIcon
A widget for displaying icons with a gradient effect.