mirror of
https://github.com/qinglong-app/qinglong_app.git
synced 2025-10-09 16:48:19 +08:00
强制横屏
This commit is contained in:
@ -26,6 +26,12 @@ void main() async {
|
|||||||
await SpUtil.getInstance();
|
await SpUtil.getInstance();
|
||||||
getIt.registerSingleton<UserInfoViewModel>(UserInfoViewModel());
|
getIt.registerSingleton<UserInfoViewModel>(UserInfoViewModel());
|
||||||
|
|
||||||
|
await SystemChrome.setPreferredOrientations(
|
||||||
|
[
|
||||||
|
DeviceOrientation.portraitUp,
|
||||||
|
DeviceOrientation.portraitDown,
|
||||||
|
],
|
||||||
|
);
|
||||||
runApp(
|
runApp(
|
||||||
ProviderScope(
|
ProviderScope(
|
||||||
overrides: [
|
overrides: [
|
||||||
|
|||||||
Reference in New Issue
Block a user