Skip to content

IchinoseBinit/svg_flutter

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published