Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
538 views
in Technique[技术] by (71.8m points)

android - 如何修复webview_flutter中的白屏?(How to fix white screen in webview_flutter?)

Run webview_flutter example app( https://github.com/flutter/plugins/tree/master/packages/webview_flutter/example ) with inital_url: " https://kreatryx.com " On Android it just shows white screen with Zopim chat bar on the bottom right.

(使用inital_url运行webview_flutter示例应用程序( https://github.com/flutter/plugins/tree/master/packages/webview_flutter/example ):“ https://kreatryx.com ”在Android上,它仅显示带有Zopim聊天栏的白屏在右下角。)

On iOS it runs fine.

(在iOS上,它运行良好。)

Any solution for android?

(Android的任何解决方案?)

What I've already tried: 1. Flutter channel dev 2. Flutter channel master

(我已经尝试过的方法:1. Flutter通道开发人员2. Flutter通道主设备)

在此处输入图片说明

  ask by Amarjeet Singh translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

update

(更新)

Similar to Android Webview: "Uncaught TypeError: Cannot read property 'getItem' of null"

(与Android Webview类似:“未捕获的TypeError:无法读取null的属性'getItem'”)

settings.setDomStorageEnabled(true); is missing.

(不见了。)

Related issue https://github.com/flutter/flutter/issues/26347

(相关问题https://github.com/flutter/flutter/issues/26347)

original

(原版的)

webview_flutter does currently not automatically redirect.

(webview_flutter当前不会自动重定向。)

https://kreatryx.com redirects to https://www.kreatryx.com and the plugin doesn't follow that redirect and just shows what https://kreatryx.com returns, which is nothing.

(https://kreatryx.com重定向到https://www.kreatryx.com ,插件不遵循该重定向,仅显示https://kreatryx.com返回的内容,没什么。)

Follow https://github.com/flutter/flutter/issues/25351

(跟随https://github.com/flutter/flutter/issues/25351)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...