feat:增加变化提醒功能

This commit is contained in:
2025-12-03 14:28:39 +08:00
parent e672442d6a
commit 8d23f06f74
10 changed files with 194 additions and 68 deletions

View File

@@ -67,13 +67,14 @@ class HealthRecord extends HiveObject {
}
enum RecordType {
weight('体重', FontAwesomeIcons.weightScale, Color(0xFFF59E0B)),
sport('运动', FontAwesomeIcons.personRunning, Color(0xFF38BDF8)),
sleep('睡眠', FontAwesomeIcons.moon, Color(0xFF10B981));
weight('体重', FontAwesomeIcons.weightScale, Color(0xFFF59E0B), 'Kg'),
sport('运动', FontAwesomeIcons.personRunning, Color(0xFF38BDF8), '分钟'),
sleep('睡眠', FontAwesomeIcons.moon, Color(0xFF10B981), '小时');
final String title;
final IconData icon;
final Color color;
final String unit;
const RecordType(this.title, this.icon, this.color);
const RecordType(this.title, this.icon, this.color, this.unit);
}