mod: 禁止180度旋转

This commit is contained in:
orz12
2024-04-26 23:44:02 +08:00
parent 30998611da
commit 3909fbf2f8
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ void main() async {
//支持竖屏与横屏 //支持竖屏与横屏
[ [
DeviceOrientation.portraitUp, DeviceOrientation.portraitUp,
DeviceOrientation.portraitDown, // DeviceOrientation.portraitDown,
DeviceOrientation.landscapeLeft, DeviceOrientation.landscapeLeft,
DeviceOrientation.landscapeRight, DeviceOrientation.landscapeRight,
], ],

View File

@@ -52,7 +52,7 @@ Future<void> autoScreen() async {
} }
await SystemChrome.setPreferredOrientations([ await SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp, DeviceOrientation.portraitUp,
DeviceOrientation.portraitDown, // DeviceOrientation.portraitDown,
DeviceOrientation.landscapeLeft, DeviceOrientation.landscapeLeft,
DeviceOrientation.landscapeRight, DeviceOrientation.landscapeRight,
]); ]);