当我在输入选项卡上打开日期选择器对话框时,它是错误的
请帮帮我,我用的是GETX Flutter
这里是main dart
@override
Widget build(BuildContext context) {
GetStorage box = GetStorage();
//print(box.read('lang'));
return GetMaterialApp(
debugShowCheckedModeBanner: false,
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
locale: LocalizationService.getLocaleFromLanguage(
langCode: box.read('lang') ?? 'en'),
fallbackLocale: LocalizationService.fallbackLocale,
translations: LocalizationService(),
initialRoute: AppPages.INITIAL,
getPages: AppPages.routes,
);
}
1条答案
按热度按时间h7wcgrx31#
你可以加上这个
不要忘记导入pubspec.yaml