How To Populate Dropdown List With JSON Data

44 views
Skip to first unread message

Mr harilall

unread,
Jan 10, 2020, 2:20:53 PM1/10/20
to Flutter Development (flutter-dev)
I have a view that builds the UI first, I also have a future function that runs and gets JSON data which I want to use to populate a dropdown. The problem is the data arrives after the view is built, I have tried calling setState but I somehow don't feel that it's the correct thing to do as setState redraws the whole view and not just the dropdown.

So how would I populate my dropdown with the items retrieved from my future JSON function?
Reply all
Reply to author
Forward
0 new messages