Tried to implement autocomplete

This commit is contained in:
2024-03-01 11:57:28 +03:00
parent 173b131eda
commit ea78cc8f91
3 changed files with 30 additions and 15 deletions

View File

@@ -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");