手机睡觉或按下电源按钮后,黑屏飘扬

发布于 2025-01-27 05:32:04 字数 836 浏览 1 评论 0原文

我希望我的应用程序运行,即使屏幕关闭以避免意外按下并减少电池电量。但是,每当我恢复应用程序时,即使我仍然可以听到该应用程序的工作原理,它总是会显示黑屏。我总是需要悬停到应用程序历史记录并再次选择应用程序以使应用程序顺利运行。 here's a sample video of the issue App Black Screen

Here's also Flutter Doctor的结果:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.10.5, on macOS 12.3 21E230 darwin-arm, locale en-PH)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 13.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.1)
[✓] VS Code (version 1.66.2)
[✓] Connected device (2 available)
[✓] HTTP Host Availability

• No issues found!

还有其他人经历过吗?

I want my app to run even if the screen closes to avoid accidental press and to consume less battery. But whenever I resume the app, it always displays a black screen even though I can still hear the app working as intended. I always needed to hover to the app history and select the app again to see the app running smoothly. here's a sample video of the issue App Black Screen

Here's also the result of flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.10.5, on macOS 12.3 21E230 darwin-arm, locale en-PH)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 13.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.1)
[✓] VS Code (version 1.66.2)
[✓] Connected device (2 available)
[✓] HTTP Host Availability

• No issues found!

Has anyone else experiencing this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

探春 2025-02-03 05:32:04

看来此错误在频道大师中不可见。因此,Flutter Channel Master在解决此问题方面做到了解决方案。

it seems this bug is not visible in channel master. so flutter channel master does the trick in fixing this issue.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文