更新快检报告

This commit is contained in:
wyf
2026-04-02 16:02:25 +08:00
parent 9a431e907e
commit bdeef22130
12 changed files with 2080 additions and 732 deletions

View File

@@ -110,19 +110,19 @@ class _QcBreatheStandardWidgetState extends State<QcBreatheStandardWidget> {
};
Map<String, dynamic> baseBreath = {
'name': '呼吸',
'name': '呼吸'.tr,
'value': brData['base'].toInt() ?? 0,
'unit': '次/分',
};
Map<String, dynamic> minBreath = {
'name': '最低呼吸',
'name': '最低呼吸'.tr,
'value': brData['min'].toInt() ?? 0,
'unit': '次/分',
};
Map<String, dynamic> maxBreath = {
'name': '最高呼吸',
'name': '最高呼吸'.tr,
'value': brData['max'].toInt() ?? 0,
'unit': '次/分',
};
@@ -260,6 +260,7 @@ class _QcBreatheStandardWidgetState extends State<QcBreatheStandardWidget> {
// baseValue: 16, // 传入基准值
baseLabel: '基准', // 可选的自定义标签
yAxisPadding: 0,
),
),
].divide(SizedBox(

View File

@@ -267,7 +267,8 @@ class _QcHeartRateStandardWidgetState extends State<QcHeartRateStandardWidget> {
baseValue: hrData['base'].toDouble(), // 传入基准值
// baseValue: 65, // 传入基准值
baseLabel: '基准', // 可选的自定义标签
yAxisPadding: 20,
yAxisPadding: 0,
yAxisMargin: 5,
),
),
),