image_fade
0.6.2, released 4 years ago by gskinner.com
A widget that cross-fades from a placeholder to a loaded image with progress and error support.
WASM-ready
What it does
ImageFade is a Flutter widget that displays a placeholder and optional progress indicator while an image loads. Once loaded, it cross-fades to the target image and handles error states. It also supports sync durations and dynamic image updates.
AI-written summary of version 0.6.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to display a placeholder with a cross-fade animation when loading images.
- You need loading progress or error handling built directly into your image widget.
- You are using CachedNetworkImageProvider and want smooth fade transitions.
Skip it when
- You only need basic built-in Flutter image fade-in capabilities without custom placeholders or progress indicators.
Strengths
- Supports custom placeholders, loading builders, and error builders.
- Compatible with CachedNetworkImageProvider.
- Uses optimized performance paths like Image.opacity and AnimatedBuilder.
Weaknesses
- Limited to image rendering and transition features only.
- Does not include advanced disk/memory caching out of the box (requires an external provider like CachedNetworkImageProvider).
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
ImageFade(
image: NetworkImage(url),
duration: const Duration(milliseconds: 900),
placeholder: Container(
color: const Color(0xFFCFCDCA),
),
)Alternatives
Packages that do the same job and could replace image_fade.
- cached_network_image
Provides a comprehensive image loading and caching solution with built-in placeholder and error widgets.
91Compare - octo_image
Provides flexible image building with placeholders, error widgets, and various image transformers.
94Compare