flutter_html_img_alt 0.2.0 copy "flutter_html_img_alt: ^0.2.0" to clipboard
flutter_html_img_alt: ^0.2.0 copied to clipboard

A flutter_html extension that renders the alt text of an img element whose source the built-in image renderer declines.

0.2.0 #

  • Renamed from flutter_html_img_alt_extension on pub.flutter-io.cn. The old package stays published and is marked discontinued with this one as its replacement. Class names are unchanged.

0.1.0 #

  • Initial release. Renders the alt text of an <img> whose src the built-in image renderer declines (an SVG, a source outside its lists, no src at all). Plain flutter_html 3.0.0 renders nothing there: nothing claims the element at the preparing step, the parser hands back an EmptyContentElement, and WhitespaceProcessing deletes it before the building step. We claim it at the preparing step instead and render the text as a TextSpan in the element's own style. No alt, or alt="", still renders nothing; that's HTML's decorative image. The element subclasses TextContentElement, so it spaces and collapses like the text around it.
0
likes
150
points
417
downloads

Documentation

API reference

Publisher

verified publisherchaosworld.cc

Weekly Downloads

A flutter_html extension that renders the alt text of an img element whose source the built-in image renderer declines.

Repository (GitLab)
View/report issues
Contributing

Topics

#flutter-html #css #html #extension #accessibility

License

MPL-2.0 (license)

Dependencies

flutter, flutter_html, html

More

Packages that depend on flutter_html_img_alt