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

An upgraded SVG Renderer and widget library for Flutter with error handling capability for Svg Pictures.

svg_flutter #

Upgraded package for getting SVG Images with error handling. An upgrade to the package flutter_svg that renders the default image when an error occurs.

Draw SVG files using Flutter.

Getting Started #

Inside the main file update the errorImage variable in SvgPicture class.

void main() {
  SvgPicture.errorImage = "base64_of_your_error_image";
}

To use the picture that you have uploaded as placeholder, use the following widget

  SvgPicture.getDefaultImage();
  // Use the color parameter to pass the color.
  // If not passed, it takes White as default

Documentation #

7
likes
130
points
2.11k
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

An upgraded SVG Renderer and widget library for Flutter with error handling capability for Svg Pictures.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, vector_graphics, vector_graphics_codec, vector_graphics_compiler

More

Packages that depend on svg_flutter