4inka / flutter_easy_search_bar

Other
13 stars 22 forks source link

How to assign Id to a suggestion ? #21

Open RizanPSTU opened 1 year ago

RizanPSTU commented 1 year ago

How to assign Id to a suggestion ? But not showing the id in suggestion. But when taped it show the id and selected suggestion ?

NomadicDeveloper22 commented 1 year ago

As a workaround I just add the id to the end of the string in (id)

then use regex to separate the values

ThexXTURBOXx commented 1 year ago

In the upcoming version, thanks to #20, you can use any object (not only strings) as items to search for. Then, you can hide the id in some variable. But that version is not released yet. Are there any news @4inka? In order to use it, I currently have a dependency_override in my app, but it's not an ideal solution