any_image_view
2.5.0, released 2 months ago by farhansadikgalib.com
Dependency-free Flutter image viewer for raster, vector, Lottie, and network sources.
What it does
A single dependency-free Flutter widget that loads, caches, and renders PNG, JPG, WebP, GIF, AVIF, HEIC, SVG, and Lottie animations from network, asset, file, or XFile sources. It also supports inline and fullscreen pinch-to-zoom.
AI-written summary of version 2.5.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to render various image formats, SVGs, and Lottie animations using a single unified widget.
- You want a dependency-free image loading and caching solution.
- You need built-in support for tap-to-fullscreen zoom with pan and pinch.
Skip it when
- You need complex manipulation or editing features on the images.
- You require advanced Lottie text layers, effects, expressions, or repeaters.
Strengths
- Zero third-party dependencies.
- Supports raster, SVG, Lottie, and platform-decoded AVIF/HEIC formats in one widget.
- Built-in disk caching for network images and SVGs.
- Includes built-in zoom and fullscreen viewing capabilities.
Weaknesses
- Some advanced features of SVG and Lottie formats (such as text, filters, expressions, and repeaters) are unsupported.
- AVIF and Lottie platform decoding have specific minimum OS version requirements.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
No special setup or native permissions required.
AnyImageView(imagePath: 'https://example.com/photo.jpg', height: 200, width: 200, enableFullscreen: true)Alternatives
Packages that do the same job and could replace any_image_view.
- cached_network_image
If you specifically need advanced caching features and extensive custom image loaders for standard network images.
91Compare - flutter_svg
If you require full feature-parity with complex SVG specifications.
100Compare - photo_view
If you need a dedicated, highly customizable interactive photo viewer widget.
50Compare