简体   繁体   English

在 webview flutter 中面临问题,在 3.0.0 版本中显示空白屏幕

[英]faceing issue in webview flutter showing blank screen in 3.0.0 version

facing issue in review flutter showing the blank screen in 3.0.0 version and it's in ios enter image description here面临审查问题 flutter 在 3.0.0 版本中显示空白屏幕,它位于 ios 在此处输入图像描述

I have the same issue on Android, with versions 3.0.0 and 2.4.0.我在 Android 上遇到了同样的问题,版本为 3.0.0 和 2.4.0。 So I tested downgrading back to 2.3.1, which is what we were using before, and explicitely selecting the hybrid composition mode, by adding:所以我测试了降级到我们之前使用的 2.3.1,并明确选择混合组合模式,添加:

    if (Platform.isAndroid) WebView.platform = SurfaceAndroidWebView();

in initState, as described in https://pub.dev/packages/webview_flutter/versions/2.3.1在 initState 中,如https://pub.dev/packages/webview_flutter/versions/2.3.1中所述

The issue also occurs .也会出现这个问题 So it's probably not specific to v3.0.0.所以它可能并不特定于 v3.0.0。

Another interesting observation: the issue remains present if we upgrade to 3.0.0, then downgrade back to 2.3.1 (removing the aforementioned code which explicitly activates hybrid composition), and cleanup the pub caches...另一个有趣的观察:如果我们升级到 3.0.0,然后降级回 2.3.1(删除上述明确激活混合组合的代码),问题仍然存在,并清理 pub 缓存......

So it might be caused by a third-party dependency but I don't understand why cleaning up the dep cache doesn't fix the issue when reverting back from 3.0.0 to 2.3.1...所以它可能是由第三方依赖引起的,但我不明白为什么在从 3.0.0 恢复到 2.3.1 时清理 dep 缓存并不能解决问题......

I am still facing this issue and I am facing it in ios not in android我仍然面临这个问题,我在 ios 中遇到它,而不是在 android

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM