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