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