flutter_html_svg 3.0.0 copy "flutter_html_svg: ^3.0.0" to clipboard
flutter_html_svg: ^3.0.0 copied to clipboard

This extension package allows the <svg> tag and svg-based img sources to be rendered using the flutter_html package

flutter_html_svg #

SVG widget for flutter_html

This package renders svg elements using the flutter_svg plugin.

When rendering SVGs, the package takes the SVG data within the <svg> tag and passes it to flutter_svg. The width and height attributes are considered while rendering, if given.

The package also exposes a few ways to render SVGs within an <img> tag, specifically base64 SVGs, asset SVGs, and network SVGs.

Registering the SvgHtmlExtension:

Widget html = Html(
  extensions: {
    SvgHtmlExtension(),
  }
);
copied to clipboard
1
likes
160
points
11.1k
downloads

Publisher

verified publishersub6resources.com

Weekly Downloads

2024.10.03 - 2025.04.17

This extension package allows the <svg> tag and svg-based img sources to be rendered using the flutter_html package

Repository (GitHub)
Contributing

Topics

#html #css #svg #images

Documentation

API reference

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

flutter, flutter_html, flutter_svg, html

More

Packages that depend on flutter_html_svg