Flutter Multiselect Drop down | DropDown / Dialog With Multiselect By Desi Programmer

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Hello Sir! I have a problem when populating the dropdown on the edit screen. how can the already value will be selected?

arshadkhanSherani
Автор

I am trying to build multiple dependent dropdown like this but I need three dependent dropdown on flutter.The third one depend on the second one and The second one depend on 1st one.
Can you help me ? PLEASE ANSWER ME :)

yanisouyanis
Автор

Hello! Thanks for the video. How would you update the values on Firestore instead of printing them in the debug console? Thanks

alvarogonzalezrico
Автор

Hello! thanks for the tutorial. I have a big doubt, how do you keep the selection? because you select one, but later this back to initial state.
Thank you!

EmilianoKalafatic
Автор

The Widget works fine, but once you select the items and if you want to change it again, and when you click the dropdown again it will display the original hardcoded initial values... Is there a way to update the initial values to previously selected values?

jrgunner
Автор

The source code has many errors can anybody help me...please?

WhatsappFlow
Автор

after selecting the value the value should be displayed

himanshudwivedi
Автор

Thank you price for the great tutorial.

Solution for keep selected value.

---> I have add initState() for populateMultiselect().

@override
void initState() {
super.initState();
populateMultiselect();
}

Set<int> selectValues = Set();
void _showMultiSelect(BuildContext context) async {
//multiItem = [];
//populateMultiselect();

final items = multiItem;
// final items =
// MultiSelectDialogItem(1, 'India'),
// MultiSelectDialogItem(2, 'USA'),
// MultiSelectDialogItem(3, 'Canada'),
// ];

final selectedValues = await showDialog<Set<int>>(
context: context,
builder: (BuildContext context) {
return MultiSelectDialog(
items: items,
initialSelectedValues: selectValues.toSet(),
);
},
);

for (int value in selectValues.toSet()) selectValues.remove(value);

print(selectedValues);


}


Thank you...

nikunjramani
Автор

How to limit the maximum
Thanks in advance

shivampatil
Автор

sir code is very helpful. but I want to also get single select drop down code please send me the link of single dropdown selection code video link

partyakshchauhan
welcome to shbcf.ru