Customizable Flutter package for fade transitions and color cycling animations, perfect for highlighting UI elements, creating dynamic loading placeholders, or adding subtle animated effects to your app.
- Fade Mode (
Blinker.fade) — Smoothly animates between two colors. - Cycle Mode (
Blinker.cycle) — Loops through a sequence of colors. - Customizable animation speed and easing curve.
- Loop control: Run infinitely or a set number of times.
- Lightweight & Pure Dart: No native dependencies.
| Loading List | Rating | TImer |
|---|---|---|
![]() |
![]() |
![]() |
Add blinker to your pubspec.yaml file:
dependencies:
blinker: ^1.0.3Run the following command to install:
flutter pub getImport the package
import 'package:blinker/blinker.dart';Blinker.fade(
startColor: Colors.white,
endColor: Colors.blue,
duration: const Duration(milliseconds: 800),
curve: Curves.easeInOut,
times: null, // Infinite loop
child: Container(
width: 150,
height: 40,
color: Colors.white,
),
)Blinker.cycle(
colors: [
Colors.red,
Colors.green,
Colors.blue,
Colors.yellow,
],
duration: const Duration(milliseconds: 800),
curve: Curves.easeInOut,
times: null, // Infinite loop
child: Container(
width: 150,
height: 40,
color: Colors.grey.shade300,
),
)

