Data disappears on screen

Troubleshooting

Hello,

I have encountered a very strange behavior in my app:

I use a SwipeableStack to display profiles of members (similar to Tinder). In this setup, I have a backend query that retrieves data from an API. This API fetches all the member profiles (with a limit), and all the necessary information for each member is provided in the JSON response.

To display the member details, I use a component (profile_detailsv2) with parameters.

Which result in:


The LookingFor data comes from the JSON response. This part of the JSON is stored in a list of a specific data type.

Before displaying the LookingFor data, I ensure it is not empty by using a conditional visibility option on this data type list.



It works fine except that sometimes, the data just disappears (specifically the LookingFor data). Sometimes it is on the screen and then suddenly pops out. Sometimes it is not on the screen, but then it appears. The API works correctly and the data is there, but my conditional visibility sometimes evaluates to false, which is very strange.

Does anyone have a great idea? Maybe the use of this data type to store the information is causing a bug.

Thank you in advance.



What have you tried so far?

Load this information into a component state on component load, then display for this state but same bugs

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