Dropdown with initial value from backend query value

Widgets & Design

Hi!
I'm trying to do something very simple, but I can't make it work.
So here is a brief explanation: I have a page with data that comes from a backend query (API Call, not firebase).
So ok, I have a dropdown in this page, and I can put a list coming from this call. It works perfectly.
BUT I also want the initial value to be the first value from this list, but I can't make this work!

Here is the dropdown list:



And here is the initial value:



So when I use this i always get the null value red screen error.
Is there a way to make this work?
I have tried to use a conditional to check if the value is not null in the initial value but doesnt work too.



What have you tried so far?

Everything possible

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