offline_first_image_box library
Resilient offline-first image loader for Flutter with progressive blur cross-fade, persistent caching, exponential retry backoff, and multi-tier fallbacks.
Classes
- CacheEntry
- Entry containing cached image bytes and optional expiration timestamp.
- ImageCacheStore
- Abstract contract for offline image storage backends.
- ImageFetchResult
- The result of an image fetch operation across cache, network, and fallback tiers.
- ImageLoader
- Internal image loading and fallback pipeline engine.
- MemoryImageCacheStore
- A robust in-memory LRU cache store with TTL expiration and max entries limit.
- OfflineFirstImageBox
- A resilient, offline-first image widget designed for unstable network conditions.
- OfflineImageCacheManager
- Global coordinator for offline image caching across the app.
- RetryPolicy
- Configuration policy for auto-retrying failed network image downloads.
Enums
- CacheRule
- Strategy determining whether cached local images or remote network assets take priority.
- ImageSource
- The resolved origin source of a rendered image.
Typedefs
-
NetworkBytesFetcher
= Future<
Uint8List> Function(Uri uri) - Function signature for downloading raw bytes from a URI.