Parse-SDK-Flutter icon indicating copy to clipboard operation
Parse-SDK-Flutter copied to clipboard

Search list with ParseLiveListWidget

Open deepss1 opened this issue 4 years ago • 2 comments

Hello team,

First of all, great plugin you guys have made. Makes development with ParseServer so much smooth 👍

I would like to know if there is a way we can implement Search using ParseLiveListWidget

I tried dynamically changing QueryBuilder Object with SetState but no luck. If someone can advice us a way, that did be great.

Thank you

deepss1 avatar Dec 29 '20 06:12 deepss1

Hello, after looking around I found that the only option is to rebuild the widget. You can do this by giving the ParseLiveListWidget a unique key. Initialize the key like so:

Key _refreshKey = UniqueKey();

then adding the key to ParseLiveListWidget like so:

ParseLiveListWidget<ParseObject>(
             key: _refreshKey,

lastly, whenever you update the query, add this:

 _refreshKey = UniqueKey();

hope it helps :)

badru254 avatar Aug 26 '22 14:08 badru254

Thanks for opening this issue!

  • ❌ Please edit your post and use the provided template when creating a new issue. This helps everyone to understand your post better and asks for essential information to quicker review the issue.