Search categories, packages and repositories

Package detailsv1.0.7

flutter_svg_provider

Generate image provider from svg path, uses flutter_svg and http (for network paths) as a dependency.

AndroidiOSmacOSWindowsLinux
30-day downloads
110K
Likes
203
Pub points
150

Install package

flutter pub add flutter_svg_provider

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

flutter_svg_provider is a Flutter package that creates ImageProvider instances from SVG paths, supporting both local and network-based SVGs. It leverages flutter_svg for rendering and http for fetching remote SVGs, enabling seamless integration of scalable vector graphics into Flutter apps. Ideal for dynamic or remote SVG content, it simplifies image loading without requiring asset bundling. The package works across all major platforms including Android, iOS, macOS, Windows, and Linux.

Use cases

  • Loading SVGs from URLs
  • Rendering SVGs in lists or grids
  • Dynamic icon generation
  • Offline SVG assets
  • Custom SVG-based UI components

Key features

  • Supports network and local SVG paths
  • Built on flutter_svg and http
  • Returns standard ImageProvider
  • Cross-platform compatibility
  • Easy integration with Image widget

Suitable for

  • Apps using dynamic SVG content
  • Developers needing remote SVG loading
  • UI-heavy applications with icons
  • Projects requiring scalable graphics
  • Teams using flutter_svg already

Considerations

  • Requires flutter_svg and http as dependencies
  • Network SVGs need internet access
  • Performance may vary with complex SVGs
  • Not suitable for static asset-only workflows
  • Limited to SVG format only

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

flutter_svg_provider

A Flutter package for using svg in Image widget via custom ImageProvider.

Svg is parsed using flutter_svg dependency.

Getting started

import 'package:flutter_svg_provider/flutter_svg_provider.dart';

final img1 = Image(
  width: 32,
  height: 32,
  image: Svg('assets/my_icon.svg'),
)
final img2 = Image(
  width: 32,
  height: 32,
  image: Svg('<svg>...</svg>',source: SvgSource.raw),
)

Categories

Dependencies

Dependency list 2 items

Source repository

Projects using this package