svg_image_provider 0.0.1
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.