Flutter Tutorial - DropdownButton - Single & Multiple Data

preview_player
Показать описание
Create a DropdownButton with your individual style for your Flutter applications.


--- JOIN THE CREW ---

SHARE | SUBSCRIBE | LIKE FOR MORE VIDEOS LIKE THIS

*********

SOCIAL MEDIA: Follow Me :-)

PLAYLISTS

If you find this video useful, LIKE & SHARE this video to help other people who also learn Flutter :)

CREDITS

#Flutter #Tutorial #JohannesMilke

LIKE & SHARE & ACTIVATE THE BELL
Thanks For Watching :-)
Рекомендации по теме
Комментарии
Автор

Thanks for sharing your knoledge.
How can we send the value selected by the user of the dropdown buton to Firebasse collection?
Thanks if you can answer.

enverite
Автор

damn, I am addicted to your videos. I always seek your videos on the topics/widgets I am stuck. Good going you are going to become famous.

devilsemi
Автор

Hi 👋. How to put search option in drop-down items to search. Please tell me any suggestions

juhisravani
Автор

very good video this.
thank you bother.

surujmiah
Автор

thank you sir, do yo have multi level dropdown tutorial?

alexyan
Автор

Hi Johannes, in HTML it is usual to show "descriptions" of items but send values. For example:
<select name="cars" id="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option
<option value="audi">Audi</option>
</select>
My questions is: how can I show for example "Firstname Lastname" but sending "User-ID"?
And if I save User-ID to Firebase, how can I return User-ID from Firebase as selected but show "Firstname Lastname" ... because visitor must not know/see User-ID, only "Firstname Lastname".
My solutions is to use two lists: one with NAMES and one with IDs. If user selects NAME i use indexOf() to send/get correspondending User-ID.
Do you have a smarter solution?

tobiasmiklavcic
Автор

How can we get the same border radius and orange border when the dropdown menu is in the open state?

aytunch
Автор

hello sir how to validate a dropdown button

viralgohil
Автор

When i select a new item the new selected item does replace the first item for some reason. it stays on the first item each time i select a new item

scalechords
Автор

Hey Johannes, any idea about: ```"There should be exactly one item with
[DropdownButton]'s value: Instance of 'Market'. \nEither
zero
or 2 or more [DropdownMenuItem]s were detected with the
same value"
```

timeanew
Автор

In my case. I have list of map.
{Id: 1
Name: apple},
{Id: 2
Name Orange}, etc...

Once apple chosen i want to set 2 values,
Let say i choose apple from dropdown. I want set values as follows:
ItemID = 1
ItemName = apple


Anybody can explain? Is this even possible? :)

ismailhossain
Автор

Hi!!! How would you do it: if after selecting a user from the dropdown, you had to load below (same screen) the information of the selected user?

onChanged: (String value) { showStakeholders(context, value); },

showStakeholders(context, value) {
...
...REST API...
var users = json.decode(body['users']);

/* Here I get the user information.
I want to show it on the screen (I don't want to show it in a dialog) */
...

}

Thanks!!!

EusebiVidal
join shbcf.ru