Glimmer

The example app running in iOS

Usage

Glimmer(
                      isActive: true,
                      stroke: 2,
                      radius: 24,
                      clockwise: false,
                      duration: const Duration(seconds: 20),
                      colors: const [Colors.yellow, Colors.white, Colors.transparent],
                      child: IconButton(
                        color: Colors.yellow,
                        onPressed: () => {},
                        icon: const Icon(Icons.abc),
                      ),
                    ),
                
      

Parameters

Parameter Type Description
isActive bool Is glimmer animation active or not
stroke double Width of Glimmer Effect.
radius double Radius Corner
clockwise bool Glimmer direction.
duration Duration Glimmer Speed.
colors List List of Glimmer Colors
stops List List of Glimmer Gradient Effect
child Widget Child widget
shape ShapeBorder RoundedRectangleBorder (or) CircleBorder

Note: Length of colors and stops, must be same.

Libraries

glimmer