Flutter widget that paints a moving highlight over skeleton placeholders
open sourceBSD-3-Clausefree
Shimmer is a lightweight open source Flutter widget that paints a moving highlight over placeholder UI: skeleton screens while data loads, or a sliding highlight on a call to action. Shimmer.fromColors takes a base and a highlight colour, and the default constructor takes any gradient; direction, period, loop count and an enabled switch are options. Version 4 uses Flutter's standalone material_ui package.
Problems it solves
- show a skeleton loading placeholder while a Flutter list loads its data
- add a slide-to-unlock style moving highlight to a button in a Flutter app
- animated shimmer effect on grey placeholder boxes instead of a spinner in Flutter
Features
- Shimmer.fromColors for skeleton placeholders from a base and highlight colour
- custom linear, radial or sweep gradients
- left-to-right, right-to-left, top-to-bottom or bottom-to-top direction
- configurable period and loop count
- enabled switch that stops the animation ticker when loading finishes
Alternatives
The same job
These do what Shimmer does.
- flutter_spinkit Animated loading indicators for Flutter, inspired by SpinKit
