Description
Shimmer is a lightweight Flutter widget that paints a moving highlight over placeholder UI. It is mainly used for skeleton screens shown while data loads, and it can also give a call to action a sliding highlight. The main constructor, Shimmer.fromColors, takes a base color and a highlight color and builds the gradient for you. The child should be built from solid shapes such as containers, rows and columns, because the gradient replaces their colors and transparent pixels stay transparent. A default constructor accepts a custom gradient, such as a radial, sweep or linear gradient that follows the theme, for when the colors need more control. Parameters control the direction, which can be left to right, right to left, top to bottom or bottom to top, the period of one pass, which defaults to 1500 milliseconds, the number of loops, where 0 repeats forever, and an enabled flag that pauses the animation. The README advises wrapping a whole list of placeholders in one Shimmer rather than one per row, keeping the child simple, and turning enabled off when loading finishes so the ticker stops. Version 4.0 uses Flutter's standalone material_ui package, which requires Flutter 3.44 or later, and apps that still import the Material library can wrap subtrees in a compatibility bridge. It is aimed at Flutter developers who want a loading effect without writing the animation themselves.…
Highlights
- Shimmer effect for Flutter skeleton screens
- Shimmer.fromColors for base and highlight colors
- Custom gradients that follow the theme
- Direction, period, loop count and enabled controls
- Performance advice for lists of placeholders
Ratings & Reviews
No ratings yet
Be the first to rate Flutter Shimmer.
People also visit
Flutter Shimmer FAQ
What is Shimmer?
A Flutter widget that paints a moving highlight over placeholder UI, usually for loading skeletons.
Which Flutter version does version 4 need?
Flutter 3.44 or later, since it uses Flutter's standalone material_ui package.
How do I use it for loading states?
Use Shimmer.fromColors with base and highlight colors, and build the child from solid shapes.
Can I use a custom gradient?
Yes, through the default constructor, with a RadialGradient, SweepGradient or LinearGradient.
How do I stop the animation?
Set enabled to false when loading finishes, which stops the ticker.
Is it open source?
Yes. The source is on GitHub under the hnvn account.
What are the best Flutter Shimmer alternatives?
Popular alternatives to Flutter Shimmer include Flutter Spinkit, Loading Indicator and Flutter Tilt. See all Flutter Shimmer alternatives






