You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to use the customRender function to render iframes using this YouTube Player.
Html(
data:MD.markdownToHtml(post.content), // The breakpoint here triggers.
customRender: (node, children) { // The breakpoint here doesn't trigger.if (node is dom.Element) {
if (node.localName =='iframe') {
returnYoutubePlayer(
context: context,
source: node.attributes['src'],
quality:YoutubeQuality.HD,
);
}
}
},
onLinkTap: (String link) =>_launchUrl(link),
)
However, it doesn't seem to be working. I tried to use breakpoints to see whether or not they're actually executing, but it seems they aren't.
I tried to breakpoint data and it paused. Of course it worked as the widget rendered my HTML properly. However, the breakpoint in customRender was not triggering and the iframes were not being rendered as I expected.
Yes this is currently an outstanding issue in #64. Support for the customRender property is on the roadmap to return by version 1.0.0 of this plugin. If this is a blocking issue, you can consider setting useRichText to false and the customRender plugin will work as expected (though there are some other rendering issues).
I tried to use the customRender function to render
iframe
s using this YouTube Player.However, it doesn't seem to be working. I tried to use breakpoints to see whether or not they're actually executing, but it seems they aren't.
I tried to breakpoint
data
and it paused. Of course it worked as the widget rendered my HTML properly. However, the breakpoint incustomRender
was not triggering and theiframe
s were not being rendered as I expected.flutter_html: ^0.10.1
The text was updated successfully, but these errors were encountered: