From bfe08c4f80ce9539e1a67b96174374d769cbee01 Mon Sep 17 00:00:00 2001
From: tanlongsheng <252620078@qq.com>
Date: Thu, 31 Jul 2025 13:24:46 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9iOS=E3=80=81iPad=E5=8F=AA?=
=?UTF-8?q?=E8=83=BD=E7=AB=96=E5=B1=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ios/Runner/Info.plist | 8 +++-----
lib/main.dart | 3 +++
pubspec.yaml | 4 ++--
3 files changed, 8 insertions(+), 7 deletions(-)
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