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

@@ -13,12 +13,12 @@ class HealthProvider with ChangeNotifier {
num avgSleep = 0;
void initForm(HealthRecord record) {
formItem = record;
formItem = record.copyWith();
notifyListeners();
}
void updateRecord(HealthRecord record) {
currentRecord = record;
currentRecord = record.copyWith();
notifyListeners();
}