手机睡觉或按下电源按钮后,黑屏飘扬
我希望我的应用程序运行,即使屏幕关闭以避免意外按下并减少电池电量。但是,每当我恢复应用程序时,即使我仍然可以听到该应用程序的工作原理,它总是会显示黑屏。我总是需要悬停到应用程序历史记录并再次选择应用程序以使应用程序顺利运行。 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来此错误在频道大师中不可见。因此,
Flutter Channel Master
在解决此问题方面做到了解决方案。it seems this bug is not visible in channel master. so
flutter channel master
does the trick in fixing this issue.