'Flutter YouTube Embed Problem (HtmlUnescape)

Such a data comes from the API as a string.

</strong></p>\r\n<p>1970 yılından bu yana eğitim sektöründe girişimcilik ruhunu ortaya koyarak yeniliklerin peşinde koşan Çanga, 20 metrekarelik dükkânda başlayan serüvenin başarı hikâyesine dönüşme yolculuğunu ’ye anlattı. Çanga, eğitime verdiği önemle girişimcilik ruhunu harmanlayarak hayata geçirdiği projeler ve çalışmalar hakkında bilgiler verdi.</p>\r\n<p> <iframe src="//www.youtube.com/embed/bMhrZko2Nfo" width="560" height="314" allowfullscreen="allowfullscreen"></iframe></p>\r\n<p><strong>‘AKADEMİK YAYIN PORTFÖYÜNDE 3’ÜNCÜYÜZ’</strong><br />

This is how I show this data in my application. package = ( html_unescape: ^2.0.0 , flutter_html: ^2.2.1)

Html(
  data: HtmlUnescape().convert(
    snapshot.data![0].description,
   ),
  ),

There is no problem in the text part, but if there is a youtube embed video, that part comes blank in the emulator, on the phone it looks like this. Anyone to help with this?

enter image description here enter image description here

Error Code :

 b/117267690: Failed to get fallback IMM with expected displayId=45actual IMM#displayId=0 view=io.flutter.plugins.webviewflutter.WebViewHostApiImpl$InputAwareWebViewPlatformView{cf62f81 VFEDHVC.. ........ 0,0-1314,1099}

Is there any way to solve this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source