Skip to content

Controller is not getting updated on textsubmitted #125

@siddesh3101

Description

@siddesh3101

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);
}
});
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions