多语言
This commit is contained in:
@@ -101,9 +101,9 @@ class DeviceInfoWidget extends GetView {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
_buildInfoRow(
|
||||
'设备ID',
|
||||
'设备ID'.tr,
|
||||
deviceListController
|
||||
.model.deviceList[index]["mac"] ??
|
||||
.model.deviceList[index]["mac".tr] ??
|
||||
'',
|
||||
valueColor: (deviceListController
|
||||
.model.deviceList[index]
|
||||
@@ -112,10 +112,10 @@ class DeviceInfoWidget extends GetView {
|
||||
? Color(0xFF929699)
|
||||
: null),
|
||||
_buildInfoRow(
|
||||
'房间',
|
||||
'房间'.tr,
|
||||
deviceListController.model
|
||||
.deviceList[index]["roomName"] ??
|
||||
'未分配房间',
|
||||
'未分配房间'.tr,
|
||||
valueColor: (deviceListController
|
||||
.model.deviceList[index]
|
||||
["status"]?["status"]) ==
|
||||
@@ -123,13 +123,13 @@ class DeviceInfoWidget extends GetView {
|
||||
? Color(0xFF929699)
|
||||
: null),
|
||||
_buildInfoRow(
|
||||
'设备状态',
|
||||
'设备状态'.tr,
|
||||
(deviceListController
|
||||
.model.deviceList[index]
|
||||
["status"]?["status"]) ==
|
||||
1
|
||||
? '已绑定'
|
||||
: '已绑定',
|
||||
? '已绑定'.tr
|
||||
: '已绑定'.tr,
|
||||
valueColor: (deviceListController
|
||||
.model.deviceList[index]
|
||||
["status"]?["status"]) ==
|
||||
@@ -165,7 +165,7 @@ class DeviceInfoWidget extends GetView {
|
||||
DailyLogUtils.writeError("发生异常: $e");
|
||||
}
|
||||
},
|
||||
text: '控制',
|
||||
text: '控制'.tr,
|
||||
options: FFButtonOptions(
|
||||
color: Color(0XFF85F5FF),
|
||||
textStyle: TextStyle(
|
||||
@@ -245,7 +245,7 @@ class DeviceInfoWidget extends GetView {
|
||||
children: [
|
||||
if (device['bind_type'] == 1)
|
||||
Text(
|
||||
'已分享:',
|
||||
'已分享:'.tr,
|
||||
style: TextStyle(
|
||||
fontFamily: 'Readex Pro',
|
||||
fontSize: 21.rpx,
|
||||
@@ -274,7 +274,7 @@ class DeviceInfoWidget extends GetView {
|
||||
),
|
||||
if (device['bind_type'] == 1)
|
||||
Text(
|
||||
'人',
|
||||
'人'.tr,
|
||||
style: TextStyle(
|
||||
fontFamily: 'Readex Pro',
|
||||
fontSize: 21.rpx,
|
||||
@@ -284,7 +284,7 @@ class DeviceInfoWidget extends GetView {
|
||||
),
|
||||
if (device['bind_type'] == 2)
|
||||
Text(
|
||||
'来自',
|
||||
'来自'.tr,
|
||||
style: TextStyle(
|
||||
fontFamily: 'Readex Pro',
|
||||
fontSize: 21.rpx,
|
||||
@@ -309,7 +309,7 @@ class DeviceInfoWidget extends GetView {
|
||||
),
|
||||
if (device['bind_type'] == 2)
|
||||
Text(
|
||||
'的分享',
|
||||
'的分享'.tr,
|
||||
style: TextStyle(
|
||||
fontFamily: 'Readex Pro',
|
||||
fontSize: 21.rpx,
|
||||
@@ -359,7 +359,7 @@ class DeviceInfoWidget extends GetView {
|
||||
),
|
||||
SizedBox(width: 5),
|
||||
Text(
|
||||
'睡眠报告',
|
||||
'睡眠报告'.tr,
|
||||
style: TextStyle(
|
||||
fontFamily: 'Readex Pro',
|
||||
color: Colors.white,
|
||||
|
||||
Reference in New Issue
Block a user