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 #

6
likes
140
pub points
94%
popularity

Publisher

unverified uploader

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

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, vector_graphics, vector_graphics_codec, vector_graphics_compiler

More

Packages that depend on svg_flutter