Garen
ยทtrying to learn FlutterFlow

How to create 2 mutually exclusive lists on the same page?

Actions & Logic

I have 2 lists on the same page: Loudest (3 items) and Latest (100 items). I want to make sure that the same item does not appear in both lists -- it can be either in one or another. So how can I achieve this???

What have you tried so far?

I tried many things creating list parameters in PageState and AppState (containing a list of ID integers or a list of Supabase rows, which would contain the 3 items from the Loudest list) and then filtering them out in Latest ListView's backend query (see screenshot).
Nothing seems to work. In test mode I can see that the list of Supabase rows is in the PageState, but the Latest list is returning empty.
(something also tells me this is a really inefficient way of doing this because I'm essentially making the same/similar query 3 or 4 times on the same page)
[I've been banging my head against this one for 3 days now. I'm sure the answer is something simple. Please help!]

Did you check FlutterFlow's Documentation for this topic?
No
1
1 reply