smart_cached_network_lottie 1.0.0
smart_cached_network_lottie: ^1.0.0 copied to clipboard
A Flutter package for caching Lottie animations with smart update detection, automatic format handling (JSON and dotLottie), and ETag/Last-Modified based cache invalidation.
Changelog #
1.0.0 #
New Features #
- SmartCachedNetworkLottie: New widget with show-cached-first pattern
- Smart Format Detection: Automatic detection of JSON and dotLottie formats using magic bytes
- ETag/Last-Modified Caching: Efficient update checking without re-downloading unchanged files
- Update Callbacks:
onUpdateandonUpdateAvailablefor handling animation updates - SmartLottieCacheManager: Custom cache manager with metadata storage
Improvements #
- Prioritize magic bytes over file extension for format detection
- Support for files with
.lottieextension containing JSON content - Async update checking that doesn't block initial rendering
0.0.1 #
- Initial release with basic cached network Lottie support