feat: add satiety

This commit is contained in:
Alex
2024-12-01 23:54:16 +03:00
parent d2c2d4d479
commit 87925775e8
3 changed files with 197 additions and 165 deletions

View File

@@ -182,4 +182,15 @@ class DiaryCubit extends Cubit<DiaryState> {
);
await fetchDiary();
}
fillSatiety({
required int diaryId,
required int satiety,
}) async {
await diaryRepository.fillSatiety(
diaryId: diaryId,
mealId: selectedMeal,
satiety: satiety,
);
}
}