Hide button if list view has results

Actions & Logic

Having a list view with API call. I want to hide a button, if the list view has any items. The button is outside the list view.

My idea to hide the button is to use a page state variable, like listHasItems.

My problem is, that i dont know where to add the logic which will set the variable listHasItems to true of false. The actions are triggered by tab or so. But this variable needs to be set after API call was done.

What have you tried so far?

Tried already in actions tab of list view but there is no trigger that would fit and in the tab "API Call" of the list view i dont see a possibility to set a variable there.

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