0 purchases
svg flutter
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";
}
copied to clipboard
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
copied to clipboard
Documentation #
You can look up the official flutter_svg package details using this link: https://pub.dev/packages/flutter_svg
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.