icemanbsi / searchable_dropdown

MIT License
107 stars 162 forks source link

Need support for search delay (debounce) #142

Open farukaziz opened 3 years ago

farukaziz commented 3 years ago

Thank you for really helpful flutter package. I think there is an important feature missing which is debounce. When user search in list it immediately invkoing the searchFn which is a performance issue.

It will be more helpful, if there is an option for setting a property for search delay like debounce:500 or delay:500 where 500 is milliseconds value.

lcuis commented 3 years ago

Hello @farukaziz ,

Would your request be fulfilled if you added a 500 milliseconds delay in the searchFn?

farukaziz commented 3 years ago

If you add the search delay feature with package that would be great.

farukaziz commented 3 years ago

Hello @farukaziz ,

Would your request be fulfilled if you added a 500 milliseconds delay in the searchFn?

Yes

lcuis commented 2 years ago

Hello @farukaziz ,

Since search_choices now supports Future searches for internet calls, it was even more important to support this delay request. searchDelay is a new parameter with version 2.0.16 of the search_choices plugin.