flutter_svg_image
1.1.0+1, released 4 years ago by an unverified publisher
SVG ImageProvider for Flutter with caching support
What it does
Provides SVG ImageProvider and widget integrations for Flutter. It parses SVGs using jovial_svg or a WebView and caches files using flutter_cache_manager.
AI-written summary of version 1.1.0+1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to load and cache network SVGs as a standard Flutter ImageProvider
- You want to render SVGs using jovial_svg or WebView rendering
Skip it when
- You need a simple vector asset loader without caching or external parsing libraries
Strengths
- Supports caching of SVG files via flutter_cache_manager
- Provides options for parsing with jovial_svg or WebView
Weaknesses
- Limited platform support (Android and iOS)
- Relies on external heavy dependencies like flutter_inappwebview and jovial_svg
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
not documented
import 'package:flutter_svg_image/flutter_svg_image.dart';
Image(
fit: BoxFit.contain,
image: SvgImage.cachedNetwork(
'https://jovial.com/images/jupiter.svg',
),
);Alternatives
Packages that do the same job and could replace flutter_svg_image.
- flutter_svg
More widely adopted and standard library for rendering SVG assets and strings directly in Flutter.
100Compare - cached_network_image
Better suited for standard raster images with robust caching capabilities.
91Compare
Works with
Packages commonly used together with flutter_svg_image: ones it builds on, ones built on it, and its own family.
- flutter_cache_managerflutter_svg_image depends on itGeneric cache manager for saving web files and cache info on device storage.
- flutter_inappwebviewflutter_svg_image depends on itAdd inline WebViews, headless WebViews, and in-app browser windows.
- flutter_image_compressflutter_svg_image depends on itCompress pictures using native code to effectively reduce image size.
- jovial_svgflutter_svg_image depends on itSVG - Robust rendering of Scalable Vector Graphic images, supporting a well-defined profile of SVG, a fast-loading binary storage format, and animation.