Sub6Resources / flutter_html

A Flutter widget for rendering static html as Flutter widgets (Will render over 80 different html tags!)
https://pub.dev/packages/flutter_html
MIT License
1.76k stars 814 forks source link

Add srcdoc check when building IframeWidget #1355

Open swiftymf opened 9 months ago

swiftymf commented 9 months ago

This branch allows developers to, in addition to 'src', pass in html that contains a 'srcdoc' property. 'src' is great for passing in a URL, but if someone wants to pass in HTML, etc., inside an iframe, then we need to use 'srcdoc'. This branch is broken into three commits since there are three separate features being introduced.

Check is 'srcdoc' is sent in with the extensionContext attributes. If there is no 'srcdoc' we fallback to 'src'. This change doesn't break the current usage of the package and will not impact developers currently using it.

emiliodallatorre commented 9 months ago

THANK YOU! @swiftymf

chillbrodev commented 4 months ago

What needs to happen in order to get this merged in?

chillbrodev commented 1 month ago

Bump @Sub6Resources