image_fade 0.6.2 image_fade: ^0.6.2 copied to clipboard
A widget that displays a placeholder and optional progress indicator while an image loads, then cross-fades to the loaded image. Improves on FadeInImage. Compatible with CachedNetworkImageProvider.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[0.6.1] - 2022-05-15 #
Changed #
- Fixed an issue where an empty ImageFade (no placeholder) could cause errors in some layouts
[0.6.0] - 2022-05-14 #
Added #
- Added
syncDuration
— if specified will be used for fading in placeholder, error, and synchronously loaded images
Changed #
- Renamed
fadeDuration
toduration
andfadeCurve
tocurve
- Optimized
loadingBuilder
to useAnimatedBuilder
- Deferred call to
errorBuilder
untilbuild
to avoid context related issues - Switch dependency from
flutter/material
toflutter/widgets
[0.5.0] - 2022-05-12 #
Changed #
- Fixed an issue with
loadingBuilder
introduced with NNBD - Changed the signature for
loadingBuilder
&errorBuilder
to make them easier to use - Updated the example
[0.4.0] - 2022-04-07 #
Changed #
- Now uses
Image.opacity
when appropriate for even better performance.
[0.2.1] - 2019-09-02 #
Changed #
- Now using
FadeTransition
instead ofOpacity
for better performance.
[0.2.0] - 2019-07-29 #
Added #
- Support for error handling via
errorBuilder
Changed #
placeholder
now accepts aWidget
instead of anImageProvider
.- previously loaded images are now faded out after the new image is faded in. Noticeable when a smaller image is loaded over a larger one.
Removed #
backgroundColor
was removed. Use aplaceholder
with a color instead.