shimmer
4.0.0, released 3 months ago by hunghd.dev
Paints a moving highlight over skeleton placeholders and call-to-action text.
WASM-readyUses material_ui
What it does
Provides a Flutter widget that applies a moving highlight effect using shaders. It is commonly used for creating skeleton screens during loading states or sliding highlights on call-to-action text.
AI-written summary of version 4.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display skeleton loading placeholder screens for asynchronous data.
- You want to create a sliding highlight effect on text or buttons like a slide-to-unlock feature.
Skip it when
- You are wrapping individual rows in separate Shimmer widgets within a long list instead of wrapping the whole list.
- Your app does not meet the Flutter >=3.44.0 requirement introduced in version 4.0.0.
Strengths
- Lightweight widget utilizing a ShaderMaskLayer for efficient rendering.
- Supports customizable gradients, direction, period, loops, and enabled state.
Weaknesses
- Requires using the standalone material_ui package and Flutter >=3.44.0 in version 4.0.0.
- Complex child widgets with images or decorated text may render incorrectly because the shader replaces their colors.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Requires adding the shimmer dependency and the standalone material_ui package (Flutter 3.44+).
Shimmer.fromColors(
baseColor: Colors.grey.shade300,
highlightColor: Colors.grey.shade100,
child: Column(
children: [
Container(height: 200, color: Colors.white),
const SizedBox(height: 16),
Container(height: 12, color: Colors.white),
],
),
);Alternatives
Packages that do the same job and could replace shimmer.
- skeletonizer
Alternative package listed in catalog for skeleton placeholders.
86Compare
Works with
Packages commonly used together with shimmer: ones it builds on, ones built on it, and its own family.
- material_uishimmer depends on itOfficial Flutter Material UI library implementing Google’s Material Design system.
- reown_appkitBuilt on shimmerFlutter toolkit for WalletConnect onchain UX
- slider_buttonBuilt on shimmerA customizable slider button widget for activating or deactivating events.
- masamune_universal_uiBuilt on shimmerA responsive universal UI framework package for writing platform-independent code.
- fancy_shimmer_imageBuilt on shimmerWidget that loads cached network images with a customizable shimmer loading effect.
- advstoryBuilt on shimmerAn advanced, complete story viewer. Has support for images, videos, custom widget contents, gestures, interceptors, listeners, manipulators and much more.
- k_chart_plus_deepingBuilt on shimmerFlutter library for candle and depth charts with zoom, EMA, and volume support.
- widget_toolkitBuilt on shimmerThe Widget Toolkit package consists of several lightweight and customisable UI components that boost productivity and reduce the development time.