|
@@ -227,7 +227,10 @@ class _FollowBloodPressureState extends State<FollowBloodPressure> {
|
|
|
InkWell(
|
|
|
child: SideBar(
|
|
|
title: '血压',
|
|
|
- value: _buildResult(_nibpExamValue),
|
|
|
+ value: _buildResult(
|
|
|
+ _nibpExamValue,
|
|
|
+ ' mmHg',
|
|
|
+ ),
|
|
|
unit: 'mmHg',
|
|
|
required: widget.currentFormObject.required,
|
|
|
),
|
|
@@ -259,7 +262,7 @@ class _FollowBloodPressureState extends State<FollowBloodPressure> {
|
|
|
);
|
|
|
}
|
|
|
|
|
|
- Widget _buildResult(NibpExamValue? nibpExamValue) {
|
|
|
+ Widget _buildResult(NibpExamValue? nibpExamValue, String? unit) {
|
|
|
const textStyle = TextStyle(fontSize: 26, color: Colors.black);
|
|
|
|
|
|
return Row(
|
|
@@ -271,16 +274,31 @@ class _FollowBloodPressureState extends State<FollowBloodPressure> {
|
|
|
children: [
|
|
|
Align(
|
|
|
alignment: Alignment.centerLeft,
|
|
|
- child: Text(
|
|
|
- nibpExamValue?.systolicPressure.toString() ?? '',
|
|
|
- style: textStyle,
|
|
|
+ child: RichText(
|
|
|
+ text: TextSpan(
|
|
|
+ text: nibpExamValue?.systolicPressure.toString() ?? '',
|
|
|
+ style: textStyle,
|
|
|
+ children: [
|
|
|
+ TextSpan(
|
|
|
+ text: unit ?? '',
|
|
|
+ style: textStyle.copyWith(fontSize: 20),
|
|
|
+ ),
|
|
|
+ ]),
|
|
|
),
|
|
|
),
|
|
|
Align(
|
|
|
alignment: Alignment.centerRight,
|
|
|
- child: Text(
|
|
|
- nibpExamValue?.diastolicPressure.toString() ?? '',
|
|
|
- style: textStyle,
|
|
|
+ child: RichText(
|
|
|
+ text: TextSpan(
|
|
|
+ text: nibpExamValue?.diastolicPressure.toString() ?? '',
|
|
|
+ style: textStyle,
|
|
|
+ children: [
|
|
|
+ TextSpan(
|
|
|
+ text: unit ?? '',
|
|
|
+ style: textStyle.copyWith(fontSize: 20),
|
|
|
+ ),
|
|
|
+ ],
|
|
|
+ ),
|
|
|
),
|
|
|
),
|
|
|
],
|