custom_cached_image 1.5.0
custom_cached_image: ^1.5.0 copied to clipboard
A Flutter package for displaying cached network images with a shimmer loading effect.
1.5.0 2026-Feb-05 #
Updated #
-
CustomCachedImagenow provides:errorWidgetif provided, allowing custom fallback widgets (e.g., asset image, SVG, or any widget) when the image fails to load.- Initials-based widget when
isProfileistrue, showing the user's initials as a fallback. - Default network image placeholder when no custom widget or profile initials are used.
Added #
nameparameter to generate initials when the image fails to load (useful for profile images).isProfileflag to distinguish profile images from others (to show initials on failure)._InitialsFallbackwidget with a colored background for displaying initials._NotFoundWidgetfor default fallback with a network image when the image fails to load._ShimmerEffectas the default loading placeholder while the image is being fetched.
1.4.0 2025-Aug-01 #
Updated #
-
CustomCachedImagenow conditionally falls back to:errorWidgetif provided.- Initials-based widget when
isProfileistrue. - Default placeholder image otherwise.
Added #
nameparameter for generating initials fallback.isProfileflag to distinguish profile images from others._InitialsFallbackwidget with a colored background._NotFoundWidgetfor default placeholder image on failure._ShimmerEffectas the default loading placeholder.
1.1.0 - 2025-05-12 #
Added #
errorWidgetparameter toCustomCachedImageto allow custom fallback widgets (e.g., asset image, SVG, or any widget) when the image fails to load.
0.0.1 - 2025-01-01 #
Initial Release #
- Basic
CustomCachedImagewidget with cached network image loading and shimmer placeholder.
Explanation: #
- Version 1.5.0 (Feb 5, 2026) introduces more flexibility for error handling by allowing a custom
errorWidget, and fallback handling for profile images with initials and a default network image.