My two dependent dropdowns with dynamically retrieving the data in the SQLite database do not work normally
My first dropdown displays a list of cities that already exists. The second, depending on the value of the first, must display a list of sites which must be retrieved from the sqlite database.
Is there a way to populate DropDownButtonFormField items only when user taps (clicks on web) on button to open it?
I have a DropDownButtonFormField in a Form as an optional field. Is there a way only to populate items of it if users clicks on the button or taps on it because it makes a network request. Progress indicator will be shown until it loads data.