Closed onlinecheckwriter-zz closed 5 years ago
Yes, this is possible. Try calling your http request or whatever you have, and assigning a callback for it, when it calls back, set the data and setState.
I don't know what onBlur event is though or what you mean by that.
Hello, Is it possible to reload the list from remote, When people finish writing?
For instance, you want to search starting with ab when you will finishing typing ab it should go to the server bring data and reload the listing.
loading? CircularProgressIndicator():searchTextField = AutoCompleteTextField(
key: key,
clearOnSubmit: false,
suggestions: users,
style: TextStyle(color: Colors.black, fontSize: 16.0),
decoration: InputDecoration(
contentPadding: EdgeInsets.fromLTRB(10.0, 30.0, 10.0, 20.0),
hintText: "Search Name",
suffixIcon: new Icon(Icons.search) ,
hintStyle: TextStyle(color: Colors.black),
),
itemFilter: (item, query) {
void getUsers(String keyword) async { try {
}