transparent_svg 2.0.0 copy "transparent_svg: ^2.0.0" to clipboard
transparent_svg: ^2.0.0 copied to clipboard

A transparent svg image used in the same way as transparent_image

transparent_svg #

This is to be used with the flutter_svg package seen here: https://pub.dev/packages/flutter_svg
It performs the same as https://pub.dev/packages/transparent_image but for SVG images!

This way you can ternary new SVG images in as you load them from memory.

For example:

FlutterSvg.memory(isLoaded ? kActualImage : kTransparentSvg)

Just call kTransparentSvg where you need it!

2
likes
130
pub points
40%
popularity

Publisher

unverified uploader

A transparent svg image used in the same way as transparent_image

Homepage

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on transparent_svg