feat: 新增设置:横屏时返回可以直接返回为横屏页面,无需经过竖屏

This commit is contained in:
orz12
2024-01-27 01:27:01 +08:00
parent 7bf9acb0cb
commit 8c1a34c133
5 changed files with 18 additions and 3 deletions

View File

@@ -1069,7 +1069,9 @@ class _HeaderControlState extends State<HeaderControl> {
else
<void>{
if (MediaQuery.of(context).orientation ==
Orientation.landscape)
Orientation.landscape &&
setting.get(SettingBoxKey.exitFullscreenAutoVertical,
defaultValue: true))
{
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,