强制横屏

This commit is contained in:
jyuesong
2022-05-30 14:20:20 +08:00
parent 64ee8189b1
commit 5f91160d9a

View File

@ -26,6 +26,12 @@ void main() async {
await SpUtil.getInstance();
getIt.registerSingleton<UserInfoViewModel>(UserInfoViewModel());
await SystemChrome.setPreferredOrientations(
[
DeviceOrientation.portraitUp,
DeviceOrientation.portraitDown,
],
);
runApp(
ProviderScope(
overrides: [