解绑设备

This commit is contained in:
czz
2025-06-24 15:38:18 +08:00
parent c21896a408
commit 1522f2e4c9
17 changed files with 706 additions and 472 deletions

View File

@@ -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