mod: 首页支持横竖屏

This commit is contained in:
orz12
2024-01-26 23:14:22 +08:00
parent adf8301a79
commit 9cb6c93a00

View File

@@ -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();