Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ios 启动页短暂黑屏 #57

Closed
liupeng826 opened this issue Feb 9, 2020 · 3 comments
Closed

ios 启动页短暂黑屏 #57

liupeng826 opened this issue Feb 9, 2020 · 3 comments

Comments

@liupeng826
Copy link

Flutter app 在ios平台设置启动图以后启动app 在启动页和splash页之间为什么会有短暂的黑屏

@phoenixsky
Copy link
Owner

flutter/flutter#39494

@liu1013269528
Copy link

我自己研究了一个相对友好的避免 iOS 黑屏的方式,我 localstorage 的初始化,放到 flashpage 中,这样可以避免出现黑屏出现,其实主要就是
localStorage = LocalStorage('LocalStorage'); await localStorage.ready; 比较耗时间。

@phoenixsky
Copy link
Owner

@liu1013269528 这个方案治标不治本,耗时操作是我故意在flutter引擎初始化时加入的。

flutter sdk在设计之初是打算在 flutter这边有输出第一帧图像时,才由native的闪屏切换到flutter,这样不管flutter方面在初始化时耗时多久,都会先一直显示native端的图像,直到flutter开始输出图像。
但是在后来的几次sdk的更新中,这个issue39494反复出现问题。
目前该issue已经被关闭,可以更新至已修复版本的sdk,然后在release环境测试。

@phoenixsky phoenixsky changed the title ios 短暂黑屏 ios 启动页短暂黑屏 Apr 15, 2020
@phoenixsky phoenixsky pinned this issue Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants