no_cache_img 0.0.2 copy "no_cache_img: ^0.0.2" to clipboard
no_cache_img: ^0.0.2 copied to clipboard

A Flutter widget that loads images from the network without caching. Ideal for displaying dynamic or frequently updated images that should always bypass local cache.

πŸ–ΌοΈ no_cached_image #

no_cached_image is a Flutter package that loads images from the internet without using cache.
It’s perfect for dynamic or frequently updated content like user avatars, dashboard banners, or time-sensitive visuals.

βœ… Built using Clean Architecture for scalability and maintainability.


πŸ“¦ Features #

  • 🚫 Prevents caching using Cache-Control and Pragma headers
  • πŸ” Always fetches the latest image version
  • πŸ’‘ Cleanly organized with domain/data/presentation layers
  • πŸ”„ Easy to customize and extend

πŸš€ Getting Started #

πŸ“₯ Installation #

Add the following to your pubspec.yaml:

dependencies:
  no_cached_image: ^0.0.2

Then run:

flutter pub get

βœ… Usage #

import 'package:no_cache_img/no_cache_img.dart';

NoCacheImg(
  imageUrl: 'https://example.com/image.jpg',
  width: 200,
  height: 200,
  fit: BoxFit.cover,
)

🧱 Architecture #

lib/
β”œβ”€β”€ core/               # Common exceptions/utilities
β”œβ”€β”€ data/               # Remote data source & repository implementation
β”œβ”€β”€ domain/             # Entities, repositories, use cases
β”œβ”€β”€ presentation/       # UI widget
└── no_cached_image.dart

πŸ”§ Parameters #

Property Type Description
imageUrl String The network URL of the image
width double? Optional width
height double? Optional height
fit BoxFit? How the image should be inscribed

πŸ“„ License #

MIT License. Β© 2025 Aly Zaafan

πŸ™‹β€β™‚οΈ Author #

Aly Hassan
GitLab: @ialyzaafan

0
likes
135
points
21
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter widget that loads images from the network without caching. Ideal for displaying dynamic or frequently updated images that should always bypass local cache.

Repository (GitLab)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, http

More

Packages that depend on no_cache_img