Closed 3nws closed 1 year ago
👋 @3nws
NOTE: This comment is auto-generated.
Are you sure you have already searched for the same problem?
Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem!
If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue.
In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding android WebView [MY ERROR HERE]
or ios WKWebView [MY ERROR HERE]
keywords.
Following these steps can save you, me, and other people a lot of time, thanks!
This seems to be an issue with the flutter_html
package.
Environment
Device information: Oppo A54 4G, Pixel 7 Pro
Description
I am trying to display articles with rather long text and several iframes in them inside a
SingleChildScrollView
. I useflutter_html
to display the content.To custom render the iframes I create a custom extension (I need this not just for youtube videos but also to render embeds like tiktok videos, tweets, and instagram posts. The rest are not included in the post for simplicty's sake.). Which renders the specific links within
InAppWebView
.If these webviews(regardless of the site) are rendered at the start of the page(in view port) such that they don't need to be scrolled down to, they work fine.
There are also no errors when I try to interact with them.
I am posting this as an issue on
flutter_html
too since I am not sure which one has the problem.Expected behavior: All webviews to be interactive.
Current behavior: When they are further down the page so that you have to scroll to view them, they are unresponsive but only on a real device. All of them work fine on both IOS and Android simulators. The real devices I have tested this with are Android 12 and 13. Android Simulator is also Android 13. I have also tested with an Android 9 device which this works fine with.
Steps to reproduce
Minimum example
main.dart:
extension.dart: