feat:增加变化提醒功能
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user