ShimmerText Flutter Package A customizable Flutter widget that applies a smooth shimmer animation to your textโ€”ideal for headings, titles, premium effects, or loading states. Enjoy extensive customization for colors, fonts, size, letter spacing, and animation duration.

โœจ Features

๐Ÿš€ Smooth shimmer animation for any text

๐ŸŽจ Fully customizable:

text: display your string

textSize: set font size (default: 14)

textColor: set text color (default: Colors.white)

letterSpacing: set letter spacing (default: 1)

textFamily: choose any font

shimmerColors: define your gradient colors

duration: control shimmer speed

๐ŸŽญ Compatible with all font families

โšก Lightweight & simple integration

๐Ÿ“ฑ Ideal for headings, premium UI, loading states, and more

๐Ÿ“ธ Preview

ShimmerText Dark Mode ShimmerText Light Mode ShimmerText

## ๐Ÿ› ๏ธ Getting started

Prerequisites

โœ… Flutter SDK (latest stable version recommended)

โœ… A Flutter project (flutter create my_app)

Installation Add the package to your pubspec.yaml:

text dependencies: shimmer_text: ^1.0.0 Run flutter pub get to install.

๐Ÿš€ Usage

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), ), ), ), ); } }

๐Ÿ“ข Additional Information

๐Ÿ’ก Purpose: Add a simple, visually appealing shimmer effect to any text.

๐Ÿค Contributions: PRs are welcome! Add features or fix bugs.

๐Ÿ› Issues: Found a bug or want a new feature? Submit an issue.

๐Ÿ“ฌ Support: Reach out through GitHub Issues or Discussions.

๐Ÿ”ฎ Future plans: Shimmer direction, multiple gradients, and built-in presets.

Enjoy a premium shimmer effect with full flexibility!

Libraries

shimmer_text