Embedded Youtube video widget disappears while the web page (created by Flutter for Web) is scrolled up or down

后端 未结 1 978
情歌与酒
情歌与酒 2021-01-06 04:21

I managed to put an embedded Youtube video on a web page created using Flutter for Web. The problem is that this video widget disappears while the page is scrolled up or dow

相关标签:
1条回答
  • 2021-01-06 05:08

    I believe this is a known issue for Flutter, since the view is being rebuilt it rebuilds the webpage as well. Odd.

    If you look at flutter_webview_plugin the author writes:

    Warning: The webview is not integrated in the widget tree, it is a native view on top of the flutter view. You won't be able see snackbars, dialogs, or other flutter widgets that would overlap with the region of the screen taken up by the webview.

    If you can find a way to get the webview OUT of the widget tree, I bet it works without refreshing, it would of course render over everything else though.

    Let me know if you figure out a work around because I'm in the same boat.

    0 讨论(0)
提交回复
热议问题