多语言

This commit is contained in:
czz
2025-07-30 16:48:48 +08:00
parent 92b6896176
commit 300e3b31f6
96 changed files with 3741 additions and 2710 deletions

View File

@@ -52,7 +52,7 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
children: [
// 中间居中的标题
Text(
'详情',
'详情'.tr,
textAlign: TextAlign.center,
style: TextStyle(
color: Colors.white,
@@ -125,7 +125,7 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
const AlignmentDirectional(
-1, 0),
child: Text(
'系列' +
'系列:'.tr +
(data['device'][0]
['category'] ??
'-'),
@@ -143,7 +143,7 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
const AlignmentDirectional(
-1, 0),
child: Text(
'型号' +
'型号:'.tr +
(data['device'][0]
['series'] ??
'-'),
@@ -161,8 +161,9 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
const AlignmentDirectional(
-1, 0),
child: Text(
'序列号' +
(data['device'][0]['mac'] ??
'序列号:'.tr +
(data['device'][0]
['mac'.tr] ??
'-'),
style: TextStyle(
fontFamily: 'Readex Pro',
@@ -178,7 +179,8 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
const AlignmentDirectional(
-1, 0),
child: Text(
'报修单号' + (data['_id'] ?? '-'),
'报修单号:'.tr +
(data['_id'] ?? '-'),
style: TextStyle(
fontFamily: 'Readex Pro',
color:
@@ -193,7 +195,7 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
const AlignmentDirectional(
-1, 0),
child: Text(
'提交时间' +
'提交时间:'.tr +
(MyUtils
.timestampToDateString(
data[
@@ -212,10 +214,10 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
const AlignmentDirectional(
-1, 0),
child: Text(
'问题描述' +
'问题描述:'.tr +
(data['device'][0]
['desc'] ??
'未命名'),
'未命名'.tr),
style: TextStyle(
fontFamily: 'Readex Pro',
color:
@@ -278,7 +280,7 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
alignment:
AlignmentDirectional.centerStart, // 文字左对齐
child: Text(
'报修状态',
'报修状态'.tr,
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
@@ -640,7 +642,7 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
)),
onWillPop: () async {
// 处理返回事件,比如弹出提示框等
print("页面返回事件");
print("页面返回事件".tr);
return true; // 返回 true 允许页面返回,返回 false 阻止页面返回
},
);