修复语言

This commit is contained in:
wyf
2025-11-17 10:07:07 +08:00
parent 4cc2b324fa
commit 46ee7969c4
11 changed files with 86 additions and 67 deletions

View File

@@ -725,10 +725,10 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
padding: EdgeInsetsDirectional.fromSTEB(
0, 0.rpx, 0.rpx, 0), // 外部 padding 移到内部
width: 28.rpx,
height: 28.rpx,
height: 24.rpx,
child: SvgPicture.asset(
'assets/img/icon/group.svg',
fit: BoxFit.cover,
fit: BoxFit.fill,
color: Colors.white,
),
),

View File

@@ -141,7 +141,7 @@ class _WifiPageState extends State<WifiPage> {
@override
Widget build(BuildContext context) {
print("object");
print("object1111");
return LayoutBuilder(
builder: (context, bodySize) => GestureDetector(
// onTap: () => FocusScope.of(context).unfocus(),,
@@ -1375,7 +1375,7 @@ class _WifiPageState extends State<WifiPage> {
blueteethBindController.netType.value = 3;
TopSlideNotification.show(
context,
text: "设备连接超时,请点击刷新重试".tr,
text: "设备连接超时,请重试".tr,
textColor: themeController.currentColor.sc9,
);
FlutterBluePlus.stopScan();
@@ -1509,7 +1509,7 @@ class _WifiPageState extends State<WifiPage> {
} else {
TopSlideNotification.show(
context,
text: "设备连接失败,请点击刷新重试".tr,
text: "设备连接超时,请重试".tr,
textColor: themeController.currentColor.sc9,
);
}
@@ -1517,7 +1517,7 @@ class _WifiPageState extends State<WifiPage> {
blueteethBindController.blueConnectFlag.value = 1;
TopSlideNotification.show(
context,
text: "设备连接失败,请点击刷新重试".tr,
text: "设备连接超时,请重试".tr,
textColor: themeController.currentColor.sc9,
);
} finally {

View File

@@ -549,7 +549,7 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
widget.type['mac'],
needSuccess: true);
// return;
}
}
if (!flag) {
blueteethBindController
.selectWifi
@@ -653,7 +653,6 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
);
}
});
},
child: Row(
mainAxisSize:
@@ -1402,7 +1401,7 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
blueteethBindController.netType.value = 3;
TopSlideNotification.show(
context,
text: "设备连接超时,请点击刷新重试".tr,
text: "设备连接超时,请重试".tr,
textColor: themeController.currentColor.sc9,
);
FlutterBluePlus.stopScan();
@@ -1536,7 +1535,7 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
} else {
TopSlideNotification.show(
context,
text: "设备连接失败,请点击刷新重试".tr,
text: "设备连接超时,请重试".tr,
textColor: themeController.currentColor.sc9,
);
}
@@ -1544,7 +1543,7 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
blueteethBindController.blueConnectFlag.value = 1;
TopSlideNotification.show(
context,
text: "设备连接失败,请点击刷新重试".tr,
text: "设备连接超时,请重试".tr,
textColor: themeController.currentColor.sc9,
);
} finally {
@@ -1716,5 +1715,4 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
return await getDeviceWifiStatus(blueteethBindController.currentDevice!, 1,
link: true);
}
}

View File

@@ -429,7 +429,7 @@ class THBindTelWidget extends GetView<AuthBindTelController> {
color: themeController
.currentColor.sc2,
fontSize: AppConstants()
.title_text_fontSize,
.middler_text_fontSize,
letterSpacing: 0,
),
),

View File

@@ -612,31 +612,31 @@ class _MinePageState extends State<MinePage> {
padding: EdgeInsetsDirectional.fromSTEB(
40.rpx, 0.rpx, 40.rpx, 0.rpx),
onTap: () async {
UserInfoController userInfoController =
Get.find();
if (userInfoController.model.login !=
LoginStatus.LOGIN.code) {
TopSlideNotification.show(
context,
text: "必须登录提示".tr,
textColor:
themeController.currentColor.sc9,
);
Get.toNamed("/loginPage");
} else {
String logContent =
await DailyLogUtils.readLogByDate(
DateTime(2025, 9, 4));
print(logContent);
// DailyLogUtils.readTodayLog();
// DailyLogUtils.listLogFiles();
await DailyLogUtils.writeLog(
"测试日志内容"); // 确保写入日志
await DailyLogUtils
.exportAllLogs(); // 导出并分享
// UserInfoController userInfoController =
// Get.find();
// if (userInfoController.model.login !=
// LoginStatus.LOGIN.code) {
// TopSlideNotification.show(
// context,
// text: "必须登录提示".tr,
// textColor:
// themeController.currentColor.sc9,
// );
// Get.toNamed("/loginPage");
// } else {
// String logContent =
// await DailyLogUtils.readLogByDate(
// DateTime(2025, 9, 4));
// print(logContent);
// // DailyLogUtils.readTodayLog();
// // DailyLogUtils.listLogFiles();
// await DailyLogUtils.writeLog(
// "测试日志内容"); // 确保写入日志
// await DailyLogUtils
// .exportAllLogs(); // 导出并分享
// DailyLogUtils.exportAllLogs();
}
// // DailyLogUtils.exportAllLogs();
// }
},
child: Container(
child: Padding(
@@ -674,7 +674,7 @@ class _MinePageState extends State<MinePage> {
mainAxisSize: MainAxisSize.max,
children: [
Text(
'V1.0.2510.14',
'V1.0.2511.14',
style: TextStyle(
fontFamily: 'Inter',
color: Color(0xFFD9E3EB),

View File

@@ -1259,7 +1259,7 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
} else {
TopSlideNotification.show(
context,
text: "设备连接失败,请点击刷新重试".tr,
text: "设备连接超时,请重试".tr,
textColor: themeController.currentColor.sc9,
);
}
@@ -1267,7 +1267,7 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
blueteethBindController.blueConnectFlag.value = 1;
TopSlideNotification.show(
context,
text: "设备连接失败,请点击刷新重试".tr,
text: "设备连接超时,请重试".tr,
textColor: themeController.currentColor.sc9,
);
} finally {

View File

@@ -1091,7 +1091,7 @@ class _MHTWifiAfterPageState extends State<MHTWifiAfterPage> {
blueteethBindController.netType.value = 3;
TopSlideNotification.show(
context,
text: "设备连接超时,请点击刷新重试".tr,
text: "设备连接超时,请重试".tr,
textColor: themeController.currentColor.sc9,
);
FlutterBluePlus.stopScan();
@@ -1225,7 +1225,7 @@ class _MHTWifiAfterPageState extends State<MHTWifiAfterPage> {
} else {
TopSlideNotification.show(
context,
text: "设备连接失败,请点击刷新重试".tr,
text: "设备连接超时,请重试".tr,
textColor: themeController.currentColor.sc9,
);
}
@@ -1233,7 +1233,7 @@ class _MHTWifiAfterPageState extends State<MHTWifiAfterPage> {
blueteethBindController.blueConnectFlag.value = 1;
TopSlideNotification.show(
context,
text: "设备连接失败,请点击刷新重试".tr,
text: "设备连接超时,请重试".tr,
textColor: themeController.currentColor.sc9,
);
} finally {

View File

@@ -126,22 +126,27 @@ class _RepairDetailPageState extends State<RepairDetailPage> {
themeController.currentColor.sc1,
themeController.currentColor.sc2,
],
child: Container(
width: (MediaQuery.sizeOf(context).width * 0.284)
.rpx,
constraints: BoxConstraints(
minWidth: 213.rpx,
minHeight: 91.rpx,
),
child: Align(
alignment: AlignmentDirectional(0, 0),
child: Text(
"${widget.data['type']}",
style: TextStyle(
letterSpacing: 0.0,
color: themeController.currentColor.sc3,
fontSize:
AppConstants().normal_text_fontSize,
child: Padding(
padding:
EdgeInsets.fromLTRB(32.rpx, 0, 32.rpx, 0),
child: Container(
// width:
// (MediaQuery.sizeOf(context).width * 0.284)
// .rpx,
constraints: BoxConstraints(
// minWidth: 213.rpx,
minHeight: 91.rpx,
),
child: Align(
alignment: AlignmentDirectional(0, 0),
child: Text(
"${widget.data['type']}",
style: TextStyle(
letterSpacing: 0.0,
color: themeController.currentColor.sc3,
fontSize:
AppConstants().normal_text_fontSize,
),
),
),
),