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

Creates an ImageProvider from an SVG asset with proper scaling of the underlying vector graphics.

Creates an ImageProvider from an SVG asset with proper scaling of the underlying vector graphics.

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
160
points
212
downloads

Publisher

verified publisherabcx3.com

Weekly Downloads

Creates an ImageProvider from an SVG asset with proper scaling of the underlying vector graphics.

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