flappy_search_bar icon indicating copy to clipboard operation
flappy_search_bar copied to clipboard

How to use it with listview?

Open RayhanYulanda opened this issue 5 years ago • 2 comments

I wnt to make searchable listview but it really confussing how to make it

RayhanYulanda avatar Mar 17 '20 13:03 RayhanYulanda

Hi @RayhanYulanda First of all, I am sorry for the delay. The situation in my company (in France) with the Covid-19 has forced us to put our open source projects on the side for a moment... But I am back ! :)

I am not sure about what you mean by searchable listview. But, is it a ListView in which you may search fort particular item ? It it is so, flappy_search_bar is not really the perfect widget for you I think. flappy_search_bar is more useful for http searchs.

But you could do something like this (this more like a hack than a really good answer, because the best answer is that this is not the right package to do what you meant) :

  • Create a List of items that you give as suggestions parameter
  • When searching, you just have to filter this list !

The issue will be about the "loading" widget but that is the best you can do with flappy_search_bar I think, if I understood well your request.

I'll try to be more present on this package, despite the difficult context that had lead us to change a lot the way we work here, sorry again for the delay :)

ThomasEcalle avatar Mar 27 '20 14:03 ThomasEcalle

Hi @ThomasEcalle

I'm using ListView with Card ( the card contain information of user posts, user name, post title .... ) all saved on FireStore

and I would lile to add Search bar on top of ListView ( seach post by user name, by title ... )

do you suggest to use flappy_search_bar to do this ? if yes do you have any sample ?

I'm confussing after reading you last comment ( But, is it a ListView in which you may search fort particular item ? It it is so, flappy_search_bar is not really the perfect widget for you I think. )

Thanks

azazadev avatar Aug 04 '20 19:08 azazadev