flutter_widget_from_html icon indicating copy to clipboard operation
flutter_widget_from_html copied to clipboard

IFRAME does not respect width attribute

Open daohoangson opened this issue 2 years ago • 1 comments

Steps to Reproduce

HTML
<h1>Some title</h1>
<p>Some text and the image</p>
<img src="https://online.schtandart.com/sites/default/files/inline-images/mailservice%20%2845%29_0.png"
    data-entity-uuid="7575acb9-2cb1-4caf-84d0-7768199fd85a" data-entity-type="file">
<p>&nbsp;</p>
<p><strong>Some bold text</strong> and the link <a
        href="https://www.youtube.com/watch?v=Fcoo_KWp1GA&amp;t=628s">here</a> in the text.</p>
<p>And video at the end</p>
<p><iframe width="560" height="315" src="https://www.youtube.com/embed/RwP-ZfWV5TQ?si=wWETfSHEiJ0yoKaS"
        title="YouTube video player" frameborder="0"
        allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
        allowfullscreen=""></iframe></p>
`HtmlWidget` configuration
HtmlWidget(html)

Expected results

IFRAME's width is 560px.

Actual results

Full width.

daohoangson avatar Nov 22 '23 02:11 daohoangson

v0.14.8 has been released with the fix for this. Please try upgrading to see whether it works for you.

daohoangson avatar Nov 29 '23 06:11 daohoangson