更新样式

This commit is contained in:
wyf
2025-11-18 10:21:33 +08:00
parent a0172b394b
commit 0ebe7116f6
37 changed files with 325 additions and 161 deletions

View File

@@ -61,6 +61,8 @@ class LoginController extends GetControllerEx<LoginModel> {
attr = GetModel(LoginModel()).obs;
}
//登录
Future<ApiResponse> login(BuildContext context) async {
ApiResponse apiResponse = ApiResponse(code: -1, msg: "其他手机登录页.登录失败".tr);

View File

@@ -153,6 +153,7 @@ class PersonController extends GetControllerEx<PersonModel> {
}
if (name.value.isEmpty) {
// apiResponse.msg = "请输入姓名".tr;
apiResponse.msg = "操作成功".tr;
apiResponse.code = 1;
return apiResponse;
}

View File

@@ -1,4 +1,5 @@
import 'dart:convert';
import 'dart:ui';
import 'package:ef/ef.dart';
import 'package:flutter/services.dart';
@@ -13,7 +14,7 @@ class LanguageModel {
String? filename; // 语言文件名称
String? language_name; // 语言名称
bool? selected; // 是否选中
String? language_code;//语言简称
String? language_code; //语言简称
LanguageModel();
@@ -36,6 +37,11 @@ class LanguageController extends GetControllerEx<LanguageModel> {
RxList languageList = [].obs;
var selectLanguage = Rx<LanguageModel?>(null);
// final appLocale = Rx<Locale>(Locale('zh', 'CN'));
final appLocale = Rx<Locale>(
AppLanguage().isChinese() ? const Locale('zh', 'CN') : const Locale('en', 'US'),
);
Future<void> initLanuageList() async {
try {
@@ -91,5 +97,4 @@ class LanguageController extends GetControllerEx<LanguageModel> {
);
}
}
}