svg_image_provider 0.0.1 copy "svg_image_provider: ^0.0.1" to clipboard
svg_image_provider: ^0.0.1 copied to clipboard

Creates an ImageProvider from an SVG asset.

A simple Dart package that provides an ImageProvider for Flutter that can load SVG images.

Features #

  • Load SVG images from assets
  • Scale SVG images to fit a given container size

Getting started #

Add the package to your pubspec.yaml file:

dependencies:
  svg_image_provider: ^0.1.0

Usage #

SvgImageProvider(
            'assets/images/placeholder.svg',
            scale: 1.0,
            containerSize: Size(100, 100),
)

Additional information #

My name is Fredrik Borgström, and if you have any suggestions or want to report a bug, you can reach me through my web site at abcx3.com, or you can submit an issue on the GitHub repository. The package is open source and contributions are welcome.

2
likes
150
points
212
downloads

Publisher

verified publisherabcx3.com

Weekly Downloads

Creates an ImageProvider from an SVG asset.

Homepage
Repository (GitHub)

Topics

#svg #flutter #imageprovider

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_svg

More

Packages that depend on svg_image_provider