更新实时体征数据样式
This commit is contained in:
@@ -1207,11 +1207,19 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
|
|||||||
child: CustomCard(
|
child: CustomCard(
|
||||||
borderRadius: AppConstants().button_container_radius,
|
borderRadius: AppConstants().button_container_radius,
|
||||||
onTap: () {
|
onTap: () {
|
||||||
String mac = widget.device['mac'];
|
// String mac = widget.device['mac'];
|
||||||
String sleepReportUrl =
|
// String sleepReportUrl =
|
||||||
"${ServiceConstant.sleep_report_url}?mac=${mac}&token=${ServiceConstant.sleep_token}";
|
// "${ServiceConstant.sleep_report_url}?mac=${mac}&token=${ServiceConstant.sleep_token}";
|
||||||
Get.toNamed("/sleepReportPage",
|
// Get.toNamed("/sleepReportPage",
|
||||||
arguments: sleepReportUrl);
|
// arguments: sleepReportUrl);
|
||||||
|
Get.toNamed("/newSleepReportPage", arguments: {
|
||||||
|
'date':DateTime.now().millisecondsSinceEpoch,
|
||||||
|
"mac": widget.device['mac'],
|
||||||
|
'type': 1,
|
||||||
|
'name': 'sleep', //'sleep', 'heartRate' 或 'breathe'
|
||||||
|
// 'itemName': widget.data['id'],
|
||||||
|
'person': widget.device['person'],
|
||||||
|
});
|
||||||
},
|
},
|
||||||
colors: [
|
colors: [
|
||||||
themeController.currentColor.sc1,
|
themeController.currentColor.sc1,
|
||||||
|
|||||||
@@ -830,10 +830,12 @@ class _InstantBodyPageState extends State<InstantBodyPage>
|
|||||||
title: "体动".tr,
|
title: "体动".tr,
|
||||||
iconAsset:
|
iconAsset:
|
||||||
"assets/img/icon/bodymotion.svg",
|
"assets/img/icon/bodymotion.svg",
|
||||||
value: (bodyMotion == null ||
|
value: inBed == "离床"
|
||||||
bodyMotion == -1)
|
? ("-")
|
||||||
? "未知数据".tr
|
: (bodyMotion == null ||
|
||||||
: "$bodyMotion",
|
bodyMotion == -1)
|
||||||
|
? "未知数据".tr
|
||||||
|
: "$bodyMotion",
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -845,16 +847,20 @@ class _InstantBodyPageState extends State<InstantBodyPage>
|
|||||||
title: "心率".tr,
|
title: "心率".tr,
|
||||||
iconAsset:
|
iconAsset:
|
||||||
"assets/img/icon/heart.svg",
|
"assets/img/icon/heart.svg",
|
||||||
value: (heartrate == null ||
|
value: inBed == "离床"
|
||||||
heartrate == -1)
|
? "-"
|
||||||
? "未知数据".tr
|
: ((heartrate == null ||
|
||||||
: "$heartrate",
|
heartrate == -1)
|
||||||
|
? "未知数据".tr
|
||||||
|
: "$heartrate"),
|
||||||
),
|
),
|
||||||
DeviceStatusInfoWidget(
|
DeviceStatusInfoWidget(
|
||||||
title: "打鼾".tr,
|
title: "打鼾".tr,
|
||||||
iconAsset:
|
iconAsset:
|
||||||
"assets/img/icon/snore.svg",
|
"assets/img/icon/snore.svg",
|
||||||
value: '${snores}'.tr,
|
value: inBed == "离床"
|
||||||
|
? "-"
|
||||||
|
: ('${snores}'.tr),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -866,16 +872,20 @@ class _InstantBodyPageState extends State<InstantBodyPage>
|
|||||||
title: "呼吸".tr,
|
title: "呼吸".tr,
|
||||||
iconAsset:
|
iconAsset:
|
||||||
"assets/img/icon/breathe.svg",
|
"assets/img/icon/breathe.svg",
|
||||||
value: (breathrate == null ||
|
value: inBed == "离床"
|
||||||
breathrate == -1)
|
? ("-")
|
||||||
? "未知数据".tr
|
: ((breathrate == null ||
|
||||||
: "$breathrate",
|
breathrate == -1)
|
||||||
|
? "未知数据".tr
|
||||||
|
: "$breathrate"),
|
||||||
),
|
),
|
||||||
DeviceStatusInfoWidget(
|
DeviceStatusInfoWidget(
|
||||||
title: "呼吸暂停".tr,
|
title: "呼吸暂停".tr,
|
||||||
iconAsset:
|
iconAsset:
|
||||||
"assets/img/icon/breathe_pause.svg",
|
"assets/img/icon/breathe_pause.svg",
|
||||||
value: '${breathState}',
|
value: inBed == "离床"
|
||||||
|
? "-"
|
||||||
|
: ('${breathState}'),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user