How To Create Dropdown Menu Item List in Flutter (Hindi) Flutter Tutorial || DropdownButton
Вставка
- Опубліковано 5 вер 2024
- #flutter #InventorCode
Source Code Link
drive.google.c...
****Now Connect with me on social media****
Instagram
/ b.l.kumawat_
Linkedin
in.linkedin.co...
Facebook
/ banwarilal.kumawat.900
Twitter
Ba...
Flutter Tutorial
Flutter tutorial in Hindi
FOR MORE VIDEOS
Subscribe the channel and hit the Like Button
For any issue you can WhatsApp on 7014333352
For More Video Visit InventorCode Now..!!
This is all about Flutter Drop-down Button in very deep explanation...
Thankyou so much brother very nice explanation🙏🏼🙏🏼🙏🏼
Thank you 😊😊
Great work sir... 🤟
Thank you 🤗
Can you tell me How do I make the dropdown stay open until a user selects an item, instead of dismissing when they touch outside of it?
excellent sir dropdownbutton with firebase
Thank you 🤗 😊
👌👌👌👌👌
Thank you 🤗 😊
thanks brother ❤
how to print Text not value in dropdown list ..
what do you mean..?
@@InventorCode it save value note display text
@@sradhawebcreations for that instead of data['value'] pass data['title'] in value
like this
value: data['title']
then you will get save displayed text I hope it will fix your issue.
@@InventorCode thank you sir
@@InventorCode where I add data['title'] ?
List dropDownListServiceData = [
{"title": "Website Designing", "value": "1"},
{"title": "Moblie App ", "value": "2"},
{"title": "Digital Marketing", "value": "3"},
{"title": "Social Media Marketing", "value": "4"},
{"title": "Web Portal", "value": "5"},
{"title": "e-Commerce Website", "value": "6"},
{"title": "LOGO Design", "value": "7"},
{"title": "Certification", "value": "8"},
{"title": "MSME Services", "value": "9"},
{"title": "Quality Certificate", "value": "10"},
];
DropdownButtonHideUnderline(
child: DropdownButton(
value: selectedCourseValue,
isDense: true,
isExpanded: true,
menuMaxHeight: 350,
items: [
const DropdownMenuItem(
child: Text(
"Select Services",
),
value: ""),
...dropDownListServiceData
.map((e) {
return DropdownMenuItem(
child: Text(e['title']), value: e['value']);
}).toList(),
],
onChanged: (newValue) {
setState(
() {
selectedCourseValue =newValue!;
print(selectedCourseValue);
},
);
},
),
),
when I save in api by button click I pass (selectedCourseValue) for it show text valute but store number
ApiRoutes().postData(
Name: _nameController.text,
Phone: _NumberController.text,
Email: _emailController.text,
Address: _AddressController.text,
Service: selectedCourseValue,
Details: _DetailsController.text,
Status: date,
//Status: "Active",
);
design pattern .. state management tutorial
I will do it in my upcoming videos
Sir plz make a dependent dropdown with API 🙏... plz sir meri job chli jaygi..
Ok will do that in upcoming videos 😊
sir API kaise call karani hai yeh bhi batado please
check this
ua-cam.com/video/vRwun_h-yJA/v-deo.html