Help with Filtering Query Collection using Conditional Logic

Actions & Logic

I have listView of records where each record has a status_category that is either TRUE or FALSE. I also have a bottom sheet with a checkbox that feeds an app state variable so when checked, the app state variable equals TRUE and FALSE when it is unchecked. I want to use this as a filter so that when the checkbox is checked, the listView records are filtered to show only records with the status_category == TRUE, but when the checkbox is unchecked, no filtering occurs.

What have you tried so far?

I have set the filtering as such below, using conditional logic (i.e., when checked, only returns TRUE records and when unchecked shows all records) but the listView shows the view as if the checkbox was marked TRUE even though I have the default variable set to FALSE. Basically, the filter doesn't work, so I'm not sure what I am doing wrong with the filtering logic.

Did you check FlutterFlow's Documentation for this topic?
Yes
3
2 replies