any_image_view 2.0.0 copy "any_image_view: ^2.0.0" to clipboard
any_image_view: ^2.0.0 copied to clipboard

A versatile Flutter image viewer supporting PNG, JPG, WebP, GIF, TIFF, RAW, SVG, Lottie, XFile, and network images with best resolution — all in one seamless package.

🖼️ Any Image View #

Pub Version License

Any Image View

One widget for all image types — Network, Assets, SVG, Lottie, XFile with built-in shimmer loading & error handling.

Installation #

dependencies:
  any_image_view: ^2.0.0

Usage #

import 'package:any_image_view/any_image_view.dart';

// Network
AnyImageView(imagePath: 'https://example.com/image.jpg', height: 200, width: 200)

// Asset
AnyImageView(imagePath: 'assets/image.png', height: 200, width: 200)

// SVG
AnyImageView(imagePath: 'assets/icon.svg', height: 40, width: 40)

// Lottie
AnyImageView(imagePath: 'assets/animation.json', height: 100, width: 100)

// XFile (Image Picker)
AnyImageView(imagePath: xFile, height: 200, width: 200)

// Circular Avatar
AnyImageView(imagePath: url, height: 80, width: 80, shape: BoxShape.circle)

// With Options
AnyImageView(
  imagePath: url,
  height: 200,
  width: 200,
  fit: BoxFit.cover,
  borderRadius: BorderRadius.circular(12),
  enableZoom: true,
  placeholderWidget: CircularProgressIndicator(),
  errorWidget: Icon(Icons.error),
)

Parameters #

Parameter Type Description
imagePath Object? URL, asset path, or XFile
height / width double? Dimensions
fit BoxFit? Image fit (default: cover)
shape BoxShape rectangle or circle
borderRadius BorderRadius? Rounded corners
enableZoom bool Pinch-to-zoom (default: false)
placeholderWidget Widget? Custom loader
errorWidget Widget? Custom error
httpHeaders Map? Auth headers

Supported Formats #

PNG, JPG, WebP, GIF, SVG, Lottie (.json), TIFF, RAW, HEIC, BMP, ICO

Platform Support #

✅ Android · ✅ iOS · ✅ Web · ✅ macOS · ✅ Windows · ✅ Linux


Made with ❤️ by Farhan Sadik Galib

86
likes
160
points
451
downloads
screenshot

Publisher

verified publisherfarhansadikgalib.com

Weekly Downloads

A versatile Flutter image viewer supporting PNG, JPG, WebP, GIF, TIFF, RAW, SVG, Lottie, XFile, and network images with best resolution — all in one seamless package.

Homepage
Repository (GitHub)
View/report issues

Topics

#flutter #image #image-viewer #svg #lottie

Documentation

API reference

License

MIT (license)

Dependencies

cached_network_image, cross_file, flutter, flutter_svg, lottie

More

Packages that depend on any_image_view