更新城市选择
This commit is contained in:
@@ -16,6 +16,7 @@ import 'package:syncfusion_localizations/syncfusion_localizations.dart';
|
||||
import 'package:vbvs_app/common/color/ServiceConstant.dart';
|
||||
import 'package:vbvs_app/common/color/appConstants.dart';
|
||||
import 'package:vbvs_app/common/color/app_uri_status.dart';
|
||||
import 'package:vbvs_app/common/pojo/city.dart';
|
||||
import 'package:vbvs_app/common/util/CheckNetwork.dart';
|
||||
import 'package:vbvs_app/common/util/CommonVariables.dart';
|
||||
import 'package:vbvs_app/common/util/DailyLogUtils.dart';
|
||||
@@ -910,6 +911,16 @@ class MyApp extends StatelessWidget {
|
||||
return Obx(() {
|
||||
var aa = languageController.appLocale.value;
|
||||
return GetMaterialApp(
|
||||
builder: (context, child) {
|
||||
final mediaQuery = MediaQuery.of(context);
|
||||
|
||||
return MediaQuery(
|
||||
data: mediaQuery.copyWith(
|
||||
textScaler: const TextScaler.linear(1.0), // 👈 新写法
|
||||
),
|
||||
child: child!,
|
||||
);
|
||||
},
|
||||
translations: AppLanguage(),
|
||||
// locale: const Locale("zh", "CN"),
|
||||
locale: AppLanguage().currentLocale, // ✅ 动态读取当前语言
|
||||
@@ -958,6 +969,7 @@ class MyApp extends StatelessWidget {
|
||||
Get.lazyPut(() => AuthBindTelController()),
|
||||
Get.lazyPut(() => MHTLoginController()),
|
||||
Get.lazyPut(() => MHTRegisterController()),
|
||||
Get.lazyPut(() => CityModelController()),
|
||||
]));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user