glimmer 0.1.1
glimmer: ^0.1.1 copied to clipboard
Glimmer adds a dynamic, animated glimmer effect to UI elements
Glimmer #
https://github.com/user-attachments/assets/e04364d8-bd4b-4938-85b3-97e699a5cadb
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.