From 528e3323cb1dc00c6159e476e409cd785dd5c465 Mon Sep 17 00:00:00 2001 From: wyf <494641114@qq.com> Date: Wed, 23 Jul 2025 16:04:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=BE=93=E5=85=A5=E6=A1=86?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=B8=AD=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/main.dart | 8 ++++++-- pubspec.yaml | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index dc164da..c2fcb1a 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -341,8 +341,12 @@ class MyApp extends StatelessWidget { GlobalWidgetsLocalizations.delegate, GlobalCupertinoLocalizations.delegate, ], - locale: Locale('zh', 'CN'), // 设置默认语言为中文 - + locale: Locale('zh', 'CN'), // 设置默认语言为中文 + supportedLocales: [ + Locale('en', 'US'), + Locale('zh', 'CN'), + ], + // locale: Locale('zh'), // 设置应用的语言为中文 // home: MainPageBBottomChange(), // initialRoute: "/loginPage", initialRoute: "/mianPageBottomChange", diff --git a/pubspec.yaml b/pubspec.yaml index 1df3ea2..44c7a83 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -21,6 +21,8 @@ dependencies: qr_flutter: ^4.1.0 flutter: sdk: flutter + flutter_localizations: + sdk: flutter ef: git: # url: http://admin@git.real.he-info.cn:8080/r/ef.git