pixelated_shimmer
A Dart package providing utilities or widgets for pixelated shimmer effects.
Demo
Features
- Displays images with a pixelated reveal effect.
- Provides a customizable animated pixelated placeholder/shimmer.
- Supports network images and other image providers.
- Configurable pixel size, animation speed, colors, and more.
Installation
Add pixelated_shimmer
to your pubspec.yaml
dependencies:
dependencies:
flutter:
sdk: flutter
pixelated_shimmer: ^0.0.1 # Replace with the latest version
Then run flutter pub get
.
Usage
Import the package:
import 'package:pixelated_shimmer/pixelated_shimmer.dart';
Use the PixelatedShimmer
widget:
PixelatedShimmer(
imageProvider: NetworkImage('YOUR_IMAGE_URL_HERE'),
width: 300,
height: 300,
pixelSize: 12.0,
borderRadius: BorderRadius.circular(8),
fit: BoxFit.cover,
)
For a more complete example, see the example
directory in this repository.
License
This package is licensed under the BSD 3-Clause License - see the LICENSE file for details.