pixora 0.1.1 copy "pixora: ^0.1.1" to clipboard
pixora: ^0.1.1 copied to clipboard

Modern cache-first network images for Flutter with memory and disk caching, retries, placeholders, and prefetching.

Pixora #

Modern cache-first network images for Flutter.

Features #

  • Memory LRU cache
  • Disk cache
  • Cache-first, network-first, cache-only and network-only policies
  • SHA-256 cache keys or custom keys
  • Retry with incremental delay
  • Shimmer placeholder
  • Retryable error widget
  • Fade-in loading
  • Memory-aware image decoding
  • Prefetch
  • Cache clear and cache-size APIs
  • Architecture independent of GetX, Riverpod, Bloc or Provider

Usage #

PixoraImage(
  url: 'https://example.com/image.jpg',
  width: 200,
  height: 200,
  fit: BoxFit.cover,
  borderRadius: BorderRadius.circular(16),
)

Cache policy #

PixoraCachePolicy.cacheFirst
PixoraCachePolicy.networkFirst
PixoraCachePolicy.cacheOnly
PixoraCachePolicy.networkOnly

Prefetch #

await PixoraImage.prefetch(imageUrl);

Cache management #

await PixoraImage.clearCache();
final size = await PixoraImage.cacheSize();

Roadmap #

ETag/Last-Modified revalidation, stale-while-revalidate, web persistent caching, cancellation, progress reporting, transformation pipelines, cache namespaces, and background prefetch queues.

License #

MIT

1
likes
160
points
89
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Modern cache-first network images for Flutter with memory and disk caching, retries, placeholders, and prefetching.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

crypto, flutter, http, path_provider

More

Packages that depend on pixora