cache_network_media 1.0.5
cache_network_media: ^1.0.5 copied to clipboard
Cache and display network images, SVGs, and Lottie animations with disk caching and offline support.
Changelog #
1.0.4 #
New Features #
- True Lazy Loading - Added
lazyLoadingparameter with viewport-based visibility detection- Uses
visibility_detectorpackage for accurate viewport tracking - Only loads media when widgets are actually visible on screen
- Works with both vertical and horizontal scrolling
- Significantly reduces bandwidth and memory usage in long lists/grids
- Starts loading when
visibleFraction > 0(even partially visible)
- Uses
Dependencies #
- visibility_detector: ^0.4.0+2 - Added for true lazy loading support
Improvements #
- StatefulWidget Migration - Converted
CacheNetworkMediaWidgetfrom StatelessWidget to StatefulWidget - Comprehensive Documentation - Updated docs to explain true lazy loading benefits and usage
Breaking Changes #
- None - Lazy loading is opt-in via the
lazyLoadingparameter (defaults tofalse)
0.0.3 #
New Features #
- onTap callback - Added tap gesture support to all media widgets (images, SVG, Lottie)
- GitHub Actions CI - Automated testing, linting, and format checking on every push/PR
Improvements #
- Code Quality - Converted all block comments to Dart doc comments (
///) - Removed Unused Imports - Cleaned up unnecessary
dart:typed_dataimports - Better Linting - Fixed all
flutter analyzewarnings and info messages
Breaking Changes #
- None
0.0.2 #
- Added Swift Package Manager support for iOS
- Added privacy manifest (PrivacyInfo.xcprivacy)
0.0.1 #
- Initial release
- Support for caching network images, SVG graphics, and Lottie animations
- Automatic disk caching with offline support
- Customizable placeholders and error widgets