A customizable Flutter widget that adds a smooth shimmer effect to text.
Perfect for headings, titles, or adding a premium animated look to your appโs UI.
Supports custom colors, font, size, letter spacing, and animation duration.
โจ Features
- ๐ Adds a smooth shimmer animation to any text
- ๐จ Fully customizable:
textโ your stringtextSizeโ default:14textColorโ default:Colors.whiteletterSpacingโ default:1textFamilyโ choose your fontshimmerColorsโ pass your own gradient colorsdurationโ control animation speed
- ๐ญ Works with any font family
- โก Lightweight and easy to use
- ๐ฑ Perfect for headings, titles, loading states, or premium effects
๐ธ Preview

๐ ๏ธ Getting started
Prerequisites
- โ Flutter SDK installed (latest stable version recommended)
- โ
A working Flutter project (
flutter create my_app)
Installation
Add this package to your pubspec.yaml:
dependencies:
shimmer_text:
path: ../shimmer_text # if using locally
# OR
shimmer_text: ^1.0.0 # once published to pub.dev
## ๐ Usage
Hereโs a quick example:
```dart
import 'package:flutter/material.dart';
import 'package:shimmer_text/shimmer_text.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
backgroundColor: Colors.black,
body: const Center(
child: ShimmerText(
text: "Hello User!",
textSize: 32,
textColor: Colors.white,
shiningColor: Colors.blue,
letterspacing: 2,
duration: Duration(seconds: 3),
),
),
),
);
}
}
```dart
const like = 'sample';
๐ข Additional Information
- ๐ก More info: This package is built for adding a simple yet powerful shimmer effect to text.
- ๐ค Contributing: Contributions are welcome! Feel free to open a PR if youโd like to add new features or fix bugs.
- ๐ Reporting issues: Found a bug or want to request a feature? Please open an issue on GitHub Issues.
- ๐ฌ Support: You can reach out to the maintainer by opening issues, discussions, or contacting via GitHub profile.
- ๐ฎ Future plans: Upcoming improvements may include shimmer directions, multiple gradients, and built-in presets.