cache_network_media 1.0.5 copy "cache_network_media: ^1.0.5" to clipboard
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.5 #

Bug Fixes #

  • Lazy Loading - Fixed visibility detection issue in lazy loading functionality

1.0.4 #

New Features #

  • True Lazy Loading - Added lazyLoading parameter with viewport-based visibility detection
    • Uses visibility_detector package 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)

Dependencies #

  • visibility_detector: ^0.4.0+2 - Added for true lazy loading support

Improvements #

  • StatefulWidget Migration - Converted CacheNetworkMediaWidget from 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 lazyLoading parameter (defaults to false)

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_data imports
  • Better Linting - Fixed all flutter analyze warnings 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