better_skeleton
0.1.0, released 3 years ago by apparence.io
A Flutter package to create glass effect skeleton loading animations.
WASM-ready
What it does
Adds a glass effect loading skeleton over widgets using a single AnimationController. It uses a custom RenderWidget to achieve the effect.
AI-written summary of version 0.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want a glass effect skeleton loading animation in your app
- You want to sync multiple skeleton loaders using a single AnimationController
Skip it when
- You need complex out-of-the-box shimmering placeholder shapes without custom building them
- You do not want to manage an AnimationController manually
Strengths
- Performs efficiently with a single animation controller over multiple widgets
- Uses a custom RenderWidget for the glass effect
Weaknesses
- Requires manual creation and disposal of an AnimationController
- Requires custom container widgets (like FakeCard) to define the skeleton shapes
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
not documented
class _MyAppState extends State<MyApp> with SingleTickerProviderStateMixin {
late final AnimationController animationController;
@override
void initState() {
super.initState();
animationController = AnimationController(vsync: this, duration: Duration(milliseconds: 1000))..repeat();
}
@override
Widget build(BuildContext context) {
return AnimatedSkeleton(
listenable: animationController,
child: FakeCard(),
);
}
}Alternatives
Packages that do the same job and could replace better_skeleton.
Works with
Packages commonly used together with better_skeleton: ones it builds on, ones built on it, and its own family.