更新实时体征数据样式
This commit is contained in:
@@ -830,10 +830,12 @@ class _InstantBodyPageState extends State<InstantBodyPage>
|
||||
title: "体动".tr,
|
||||
iconAsset:
|
||||
"assets/img/icon/bodymotion.svg",
|
||||
value: (bodyMotion == null ||
|
||||
bodyMotion == -1)
|
||||
? "未知数据".tr
|
||||
: "$bodyMotion",
|
||||
value: inBed == "离床"
|
||||
? ("-")
|
||||
: (bodyMotion == null ||
|
||||
bodyMotion == -1)
|
||||
? "未知数据".tr
|
||||
: "$bodyMotion",
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -845,16 +847,20 @@ class _InstantBodyPageState extends State<InstantBodyPage>
|
||||
title: "心率".tr,
|
||||
iconAsset:
|
||||
"assets/img/icon/heart.svg",
|
||||
value: (heartrate == null ||
|
||||
heartrate == -1)
|
||||
? "未知数据".tr
|
||||
: "$heartrate",
|
||||
value: inBed == "离床"
|
||||
? "-"
|
||||
: ((heartrate == null ||
|
||||
heartrate == -1)
|
||||
? "未知数据".tr
|
||||
: "$heartrate"),
|
||||
),
|
||||
DeviceStatusInfoWidget(
|
||||
title: "打鼾".tr,
|
||||
iconAsset:
|
||||
"assets/img/icon/snore.svg",
|
||||
value: '${snores}'.tr,
|
||||
value: inBed == "离床"
|
||||
? "-"
|
||||
: ('${snores}'.tr),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -866,16 +872,20 @@ class _InstantBodyPageState extends State<InstantBodyPage>
|
||||
title: "呼吸".tr,
|
||||
iconAsset:
|
||||
"assets/img/icon/breathe.svg",
|
||||
value: (breathrate == null ||
|
||||
breathrate == -1)
|
||||
? "未知数据".tr
|
||||
: "$breathrate",
|
||||
value: inBed == "离床"
|
||||
? ("-")
|
||||
: ((breathrate == null ||
|
||||
breathrate == -1)
|
||||
? "未知数据".tr
|
||||
: "$breathrate"),
|
||||
),
|
||||
DeviceStatusInfoWidget(
|
||||
title: "呼吸暂停".tr,
|
||||
iconAsset:
|
||||
"assets/img/icon/breathe_pause.svg",
|
||||
value: '${breathState}',
|
||||
value: inBed == "离床"
|
||||
? "-"
|
||||
: ('${breathState}'),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user