get_shimmer 0.0.3
get_shimmer: ^0.0.3 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
// Using the convenience constructor demonstrated in the example
GetShimmer.fromColors(
baseColor: Colors.grey.shade300,
highlightColor: Colors.grey.shade100,
child: Column(
children: [
ListTile(
leading: CircleAvatar(radius: 30),
title: Container(
margin: EdgeInsets.only(right: 100),
width: double.infinity,
height: 12,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(8),
),
),
subtitle: Container(
width: double.infinity,
height: 10,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(8),
),
),
),
],
),
)
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.