diff --git a/lib/main.dart b/lib/main.dart index f834d5d2..958fd1ca 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -27,8 +27,14 @@ void main() async { WidgetsFlutterBinding.ensureInitialized(); MediaKit.ensureInitialized(); SystemChrome.setPreferredOrientations( - [DeviceOrientation.portraitUp, DeviceOrientation.portraitDown]) - .then((_) async { + //支持竖屏与横屏 + [ + DeviceOrientation.portraitUp, + DeviceOrientation.portraitDown, + DeviceOrientation.landscapeLeft, + DeviceOrientation.landscapeRight, + ], + ).then((_) async { await GStrorage.init(); await setupServiceLocator(); Request();