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