flutter_html_img_alt 0.2.0
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_extensionon 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
alttext of an<img>whosesrcthe built-in image renderer declines (an SVG, a source outside its lists, nosrcat all). Plainflutter_html3.0.0 renders nothing there: nothing claims the element at thepreparingstep, the parser hands back anEmptyContentElement, andWhitespaceProcessingdeletes it before thebuildingstep. We claim it at thepreparingstep instead and render the text as aTextSpanin the element's own style. Noalt, oralt="", still renders nothing; that's HTML's decorative image. The element subclassesTextContentElement, so it spaces and collapses like the text around it.