Simple Shimmer
A simple widget with customizable shimmer-like fade animation between 2 colors for skeleton screens
Features
- Very light-weigth widget
- Easily customizable
- Defaults to light or dark shimmer default animation based on
Theme.of(context).brightness
Usage
Just add a SimpleShimmer()
widget anywhere in your UI.
Customization
SimpleShimmerTheme
can provide theme customizations to any child SimpleShimmer
widgets.
SimpleShimmerTheme.merge(
data: ShimmerThemeData(
baseColor: Colors.red,
highlightColor: Colors.red.shade200,
decoration: ShimmerDecoration(
borderRadius: BorderRadius.circular(20),
)
),
// ... somewhere there is a `SimpleShimmer` widget
)
Libraries
- simple_shimmer
-
- author: predatorx7
- email: smushaheed@gmail.com A simple library that provides a component for displaying and overriding shimmer animation in flutter