forked from eatvio/eatvio_app
Tried to implement autocomplete
This commit is contained in:
@@ -432,7 +432,6 @@ class DiaryEditBloc extends Bloc<DiaryEditEvent, DiaryEditState> {
|
||||
ProductInput event, Emitter<DiaryEditState> emit) async {
|
||||
if (state is DiaryEditLoadedState) {
|
||||
var currentState = state as DiaryEditLoadedState;
|
||||
print(currentState.productNameController!.text);
|
||||
String? token = currentState.token;
|
||||
final credentials = {
|
||||
'name': event.input,
|
||||
@@ -454,7 +453,6 @@ class DiaryEditBloc extends Bloc<DiaryEditEvent, DiaryEditState> {
|
||||
.map((product) => product['name'])
|
||||
.toList());
|
||||
|
||||
print(updatedState.autocompleteList);
|
||||
emit(updatedState);
|
||||
} else {
|
||||
print("Ошибка в декодировании ответа из API");
|
||||
|
||||
Reference in New Issue
Block a user