felixmccuaig/flutter-autocomplete-textfield

Controller is not getting updated on textsubmitted

siddesh3101 opened this issue · 1 comments

textField = SimpleAutoCompleteTextField(
key: key,
decoration: InputDecoration(
border: OutlineInputBorder(),
),
// decoration: InputDecoration(errorText: "Beans"),
controller: contoller,
suggestions: _data,
textChanged: (text) => currentText = text,
clearOnSubmit: true,
textSubmitted: (text) {
textField!.controller!.text = "Sid";
contoller.text = "s";
setState(() {
if (text != "") {
print(contoller.text);
added.add(text);
}
});
});

I can confirm this widget is not working as advertised.