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

A Flutter package that automatically detects and renders images from network, asset, file, memory, SVG, and BlurHash with caching, shimmer loading, retry, error handling, and hero animation support.

all_image_handler #

A smart Flutter image handler package that automatically detects image sources (network, asset, file, memory) and displays them with advanced features like caching, shimmer loading, retry support, and hero animations.


โœจ Features #

  • ๐Ÿ” Automatic image source detection (Network / Asset / File / Memory)
  • โšก Fast loading with caching support
  • โœจ Shimmer loading effect
  • ๐Ÿ” Retry button on load failure
  • ๐Ÿงฑ Custom error widget support
  • ๐Ÿฆธ Hero animation support
  • ๐ŸŽฏ Clean and simple API
  • ๐Ÿ“ฑ Works on Android, iOS, Web, Windows, macOS, Linux

๐Ÿš€ Installation #

Add this to your pubspec.yaml:

dependencies:
  all_image_handler: ^0.0.1

Then run:

flutter pub get

๐Ÿ“ฆ Import #

import 'package:all_image_handler/all_image_handler.dart';

๐Ÿ–ผ๏ธ Basic Usage #

AllImage(
  image: 'https://example.com/image.jpg',
)

๐Ÿง  Auto Detection #

No need to specify image type ๐Ÿ‘‡

AllImage(image: 'https://example.com/image.jpg'); // Network
AllImage(image: 'assets/images/logo.png'); // Asset
AllImage(image: file.path); // File
AllImage(image: memoryBytes); // Memory

๐ŸŽจ Advanced Usage #

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

  showShimmer: true,
  enableCache: true,

  heroTag: 'imageHero',

  errorWidget: Icon(Icons.error),
)

๐Ÿ” Retry on Error #

AllImage(
  image: 'https://wrong-url.com/image.jpg',
  showRetry: true,
)

โœจ Shimmer Loading #

AllImage(
  image: 'https://example.com/image.jpg',
  showShimmer: true,
)

๐Ÿฆธ Hero Animation #

AllImage(
  image: 'https://example.com/image.jpg',
  heroTag: 'myImage',
)

โš™๏ธ Options Overview #

Property Type Description
image dynamic Image source (auto-detected)
width double Width of image
height double Height of image
fit BoxFit Image fit
showShimmer bool Show shimmer while loading
enableCache bool Enable caching for network images
showRetry bool Show retry button on error
errorWidget Widget Custom error widget
heroTag String Enable hero animation

๐Ÿ“ธ Screenshots #

alt text


๐Ÿงช Example #

Check the /example folder for a complete working demo.


๐Ÿค Contributing #

Contributions are welcome! Feel free to open issues or submit pull requests.


๐Ÿ“„ License #

This project is licensed under the MIT License.


๐Ÿ‘จโ€๐Ÿ’ป Author #

Md Araful Islam
Flutter Developer with 2+ years of experience in building scalable mobile applications, real-time features, and production-ready apps for App Store & Play Store.

๐Ÿ”— LinkedIn: https://linkedin.com/in/your-profile ๐Ÿ“ง Email: rajuslam39@gmail.com
๐ŸŒ Portfolio: https://araful39.netlify.app/
๐Ÿ’ป GitHub: https://github.com/araful39


โญ Support #

If you like this package, please โญ star the repo and share it with others!


4
likes
135
points
54
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter package that automatically detects and renders images from network, asset, file, memory, SVG, and BlurHash with caching, shimmer loading, retry, error handling, and hero animation support.

Repository (GitHub)
View/report issues

Topics

#flutter #image #svg #cache #network-image

License

MIT (license)

Dependencies

cached_network_image, flutter, flutter_blurhash, flutter_svg, shimmer

More

Packages that depend on all_image_handler