get_shimmer 0.0.1
get_shimmer: ^0.0.1 copied to clipboard
A package to add getX shimmer effect for Flutter projects
A small GetX-friendly Shimmer widget for Flutter.
This package provides a lightweight Shimmer widget built using Getx for
controller lifecycle and simple configuration. It uses a ShaderMask under the
hood to render an animated gradient over a child widget.
Features #
Features
- Shimmer effect using
ShaderMaskandAnimationController. - Uses
Get.putfor controller lifecycle, keeping widget code concise.
Getting started #
Getting started
Add get_shimmer to your pubspec.yaml and import it:
import 'package:get_shimmer/get_shimmer.dart';
Usage #
Usage example
Shimmer(
gradient: LinearGradient(colors: [Colors.grey, Colors.white, Colors.grey]),
child: Container(
width: double.infinity,
height: 16,
color: Colors.grey[300],
),
)
Tip: set enabled: false to show the static placeholder without animation (useful
in tests or when you want to conditionally disable shimmer).
const like = 'sample';
Additional information #
Contributing
Contributions are welcome. Please open issues or PRs on the repository.