feat(diary): New models for calendar and autocomplete fix

This commit is contained in:
2024-07-19 11:55:48 +03:00
parent dbe8ac0999
commit be461e4183
13 changed files with 1140 additions and 444 deletions

View File

@@ -261,9 +261,9 @@ class DiaryBloc extends Bloc<DiaryEvent, DiaryState> {
if (state is DiaryStateLoaded) {
//var currentState = state as DiaryStateLoaded;
print(await diaryRepository.inputProduct(event.input));
final Map<String, List<Product>> productNutritionalValues =
await diaryRepository.inputProduct(event.input);
print(productNutritionalValues);
// Create a new controller with the input text and update the autocomplete list
/*var updatedState = currentState.copyWith(
productNameController: TextEditingController(text: event.input),