I'm trying to do something extremely simple that seems impossible to achieve with FlutterFlow:
- Do API Call to retrieve a list of items;
-- If succeeded, display items in a list fashion;
-- Otherwise, display an empty list;
Error handling on API Query
Database & APIs
Here's what I tried:
- Generate children from a conditional of the API Call. If response is succeeded, return the $.data path, otherwise, return an empty List;
- This Create Map option is the only thing this popup allows me to use, I tried null, an empty list (through a constant), etc, nothing works;
Here's what I get when the API Call fails:
When it succeeds, it works.
I cannot use a Data Type since my JSON is dynamic.
Yes
1
1 reply