I am trying to implement material search in my flutter app using the SearchDelegate class.
I have implemented this with a local list of items. How can I use this to get list of items from a REST API asynchronously. I already have an API which gives the list of items for a given string. I just need to know how to do it asynchronously using the SearchDelegate class in Flutter.
您应该尝试FutureBuilder , 在这里看看
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.