mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: 禁止180度旋转
This commit is contained in:
@@ -38,7 +38,7 @@ void main() async {
|
|||||||
//支持竖屏与横屏
|
//支持竖屏与横屏
|
||||||
[
|
[
|
||||||
DeviceOrientation.portraitUp,
|
DeviceOrientation.portraitUp,
|
||||||
DeviceOrientation.portraitDown,
|
// DeviceOrientation.portraitDown,
|
||||||
DeviceOrientation.landscapeLeft,
|
DeviceOrientation.landscapeLeft,
|
||||||
DeviceOrientation.landscapeRight,
|
DeviceOrientation.landscapeRight,
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -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,
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user