如果我在 Android 设备上使用 Chrome 将 Flutter Web 应用程序下载为 PWA,我无法将旋转更改为横向。
但它可以在我的 IOS 设备上使用 safari。
有人不知道如何解决这个问题吗?
就我而言,我需要调整 Flutter Web 应用程序的
manifest.json
以包含 `"orientation": "landscape"。该文件是 PWA 清单。
请参阅 https://developer.mozilla.org/en-US/docs/Web/Manifest/orientation 了解更多选项。
如果你想在运行时调整它,请参阅ScreenOrientation。