Polish health app UI

This commit is contained in:
MingNian
2026-06-26 14:37:17 +08:00
parent 86c7957144
commit df37076c46
46 changed files with 717 additions and 514 deletions

View File

@@ -30,4 +30,16 @@ class BpReading {
'unit': 'mmHg',
'recordedAt': timestamp.toUtc().toIso8601String(),
};
Map<String, dynamic>? toHeartRateRecord() {
final value = pulse;
if (value == null || value <= 0) return null;
return {
'type': 'HeartRate',
'value': value,
'source': 'DeviceSync',
'unit': 'bpm',
'recordedAt': timestamp.toUtc().toIso8601String(),
};
}
}