diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index f1195f0fc..8ff8a78c2 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -122,17 +122,15 @@ UIDeviceFamily 1 + 2 UILaunchStoryboardName LaunchScreen UIMainStoryboardFile Main - UISupportedInterfaceOrientations~ipad + UISupportedInterfaceOrientations - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight + UIInterfaceOrientationPortrait UIViewControllerBasedStatusBarAppearance diff --git a/lib/main.dart b/lib/main.dart index b35b8380c..fd95d2863 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; import 'package:flutter_easyloading/flutter_easyloading.dart'; import 'package:flutter_intro/flutter_intro.dart'; import 'package:flutter_localizations/flutter_localizations.dart'; @@ -20,6 +21,8 @@ void main() async { // 确保Flutter绑定初始化 WidgetsFlutterBinding.ensureInitialized(); + await SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]); + // 初始化存储 - 在创建应用之前初始化 await GetStorage.init(); diff --git a/pubspec.yaml b/pubspec.yaml index bc5b4ea8c..2fa9c86e6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: voitrans description: "Voitrans - AI Voice Assistant." publish_to: "none" -version: 1.0.3+11 +version: 1.0.3+19 environment: sdk: ">=3.3.0 <4.0.0" @@ -60,7 +60,7 @@ dependencies: font_awesome_flutter: ^10.8.0 lottie: ^3.3.1 app_settings: 5.2.0 - fluwx: ^5.4.1 + fluwx: ^5.7.1 url_launcher: ^6.3.1 firebase_core: ^3.12.1 firebase_auth: ^5.5.1