I tried to get data from Firestore and add it to a list in my flutter app. But although I already put list.add inside the loop, it’s still nothing inside the list.
this is the code I’m trying to do
I’m trying to add it to a list because I wanna make a dropdown menu in my flutter app.
2
Answers
Don’t know what state management you are using.
Basically you need
setState()
when you add it to the list.