解绑设备
This commit is contained in:
@@ -12,16 +12,16 @@ class LanguagePage extends GetView<MHLanguageController> {
|
||||
// }
|
||||
MHLanguageController controller = Get.find();
|
||||
BoxConstraints? bodysize;
|
||||
List<String> languageList = [
|
||||
'简体中文',
|
||||
'繁體中文',
|
||||
'English',
|
||||
];
|
||||
final Map<String, String> languageMap = {
|
||||
'简体中文': 'zh_CN',
|
||||
'繁體中文': 'zh_TW',
|
||||
'English': 'en_US',
|
||||
};
|
||||
// List<String> languageList = [
|
||||
// '简体中文',
|
||||
// '繁體中文',
|
||||
// 'English',
|
||||
// ];
|
||||
// final Map<String, String> languageMap = {
|
||||
// '简体中文': 'zh_CN',
|
||||
// '繁體中文': 'zh_TW',
|
||||
// 'English': 'en_US',
|
||||
// };
|
||||
|
||||
// class _LanguagePageState extends State<LanguagePage> {
|
||||
RxBool checkboxValue = false.obs;
|
||||
@@ -56,7 +56,7 @@ class LanguagePage extends GetView<MHLanguageController> {
|
||||
children: [
|
||||
// 中间居中的标题
|
||||
Text(
|
||||
'切换语言',
|
||||
'切换语言'.tr,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
@@ -135,7 +135,7 @@ class LanguagePage extends GetView<MHLanguageController> {
|
||||
value: controller.selectLanguage.value?.language_code ==
|
||||
model.language_code,
|
||||
onChanged: (newValue) async {
|
||||
controller.selectLanguage.value = model;
|
||||
controller.selectLanguage.value = model;
|
||||
// if (newValue!) {
|
||||
// selectLanguage!.value = languageMap[
|
||||
// text]!; // Set selectLanguage to the current text value
|
||||
|
||||
Reference in New Issue
Block a user