refactor(diary): Merge conflic resolve

This commit is contained in:
2024-07-15 18:13:44 +03:00
parent 8610cacc6f
commit 20d253313a
4 changed files with 274 additions and 4 deletions

View File

@@ -242,7 +242,7 @@ class DiaryBloc extends Bloc<DiaryEvent, DiaryState> {
final productNutritionalValues = await diaryRepository.inputProduct(event.input);
// Create a new controller with the input text and update the autocomplete list
var updatedState = currentState.copyWith(
/*var updatedState = currentState.copyWith(
productNameController: TextEditingController(text: event.input),
autocompleteList: productNutritionalValues.map((product) => product['name']).toList(),
);
@@ -252,7 +252,7 @@ class DiaryBloc extends Bloc<DiaryEvent, DiaryState> {
updatedState = updatedState.copyWith(moderationExpanded: false);
}
emit(updatedState); // Emit the updated state
emit(updatedState); */
}
}