报修 房间选择
This commit is contained in:
@@ -129,7 +129,7 @@ class VitalWidget extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final String id = data['mac'] ?? '--';
|
||||
final int? timestamp = data['create_time'];
|
||||
final int? timestamp = data['status']['updateTime'];
|
||||
final String time = (timestamp != null)
|
||||
? DateFormat('yyyy-MM-dd HH:mm')
|
||||
.format(DateTime.fromMillisecondsSinceEpoch(timestamp))
|
||||
@@ -215,7 +215,7 @@ class VitalWidget extends StatelessWidget {
|
||||
width: MediaQuery.sizeOf(context).width * 0.14,
|
||||
constraints: BoxConstraints(minWidth: 106.rpx),
|
||||
child: Text(
|
||||
"设备状态",
|
||||
"设备状态".tr,
|
||||
style: TextStyle(
|
||||
color: stringToColor("#929699"),
|
||||
fontSize: 26.rpx,
|
||||
@@ -245,7 +245,7 @@ class VitalWidget extends StatelessWidget {
|
||||
text: TextSpan(
|
||||
text: "信号强度".tr, // 文本前缀部分
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
color: Colors.black,
|
||||
fontSize:
|
||||
AppConstants().title_text_fontSize,
|
||||
),
|
||||
@@ -264,6 +264,12 @@ class VitalWidget extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
backgroundColor: Color(0xFFFFFFFF),
|
||||
colors: [
|
||||
Color(0XFF1592AA),
|
||||
Color(0xFF0C83A7),
|
||||
Color(0xFF006FA3)
|
||||
],
|
||||
);
|
||||
},
|
||||
|
||||
@@ -290,7 +296,7 @@ class VitalWidget extends StatelessWidget {
|
||||
text: TextSpan(
|
||||
text: "是否在床".tr, // 文本前缀部分
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
color: Colors.black,
|
||||
fontSize:
|
||||
AppConstants().title_text_fontSize,
|
||||
),
|
||||
@@ -309,6 +315,12 @@ class VitalWidget extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
backgroundColor: Color(0xFFFFFFFF),
|
||||
colors: [
|
||||
Color(0XFF1592AA),
|
||||
Color(0xFF0C83A7),
|
||||
Color(0xFF006FA3)
|
||||
],
|
||||
);
|
||||
},
|
||||
child: SizedBox(
|
||||
@@ -338,7 +350,7 @@ class VitalWidget extends StatelessWidget {
|
||||
text: TextSpan(
|
||||
text: "设备故障".tr, // 文本前缀部分
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc9,
|
||||
color: Colors.black,
|
||||
fontSize:
|
||||
AppConstants().title_text_fontSize,
|
||||
),
|
||||
@@ -357,6 +369,12 @@ class VitalWidget extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
backgroundColor: Color(0xFFFFFFFF),
|
||||
colors: [
|
||||
Color(0XFF1592AA),
|
||||
Color(0xFF0C83A7),
|
||||
Color(0xFF006FA3)
|
||||
],
|
||||
);
|
||||
},
|
||||
child: SizedBox(
|
||||
@@ -404,7 +422,7 @@ class VitalWidget extends StatelessWidget {
|
||||
text: TextSpan(
|
||||
text: "网络状态".tr, // 文本前缀部分
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
color: Colors.black,
|
||||
fontSize:
|
||||
AppConstants().title_text_fontSize,
|
||||
),
|
||||
@@ -424,6 +442,12 @@ class VitalWidget extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
backgroundColor: Color(0xFFFFFFFF),
|
||||
colors: [
|
||||
Color(0XFF1592AA),
|
||||
Color(0xFF0C83A7),
|
||||
Color(0xFF006FA3)
|
||||
],
|
||||
);
|
||||
},
|
||||
child: SizedBox(
|
||||
|
||||
Reference in New Issue
Block a user