ListView with conditional visibility not showing up as expected. What am I doing wrong?

Actions & Logic
Resolved

I have 2 ListViews, Recommended and SearchRecommended. Recommended is only supposed to show up when searchActive is false, i.e. user is not searching. When searchActive is true, i.e. user IS searching, SearchRecommended will then show up. However, the Recommended ListView, which is supposed to show up when the user is not searching, only shows up when I type something in the search text field and click the clear (x) button:

What have you tried so far?

I followed a tutorial by Aanya Shah on YouTube. I created this local page state variable:

Then I set this action flow for the search text field:

I have two ListViews, Recommended and SearchRecommended. For Recommended, I set it so that it only shows up when searchActive is false, i.e. when the user is not searching anything:

For SearchRecommended, I set it to show when searchActive is true:

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