Controller is not getting updated on textsubmitted
siddesh3101 opened this issue · 1 comments
siddesh3101 commented
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);
}
});
});
mauricev commented
I can confirm this widget is not working as advertised.