For those who get an error this is what I did... I used 'onChanged: (newValueSelected) {' instead of 'onChanged: (String newValueSelected) {' and I added 'value: _currentItemSelected,' right after the '}' of 'onChanged {' I hope it helps.
I was having a syntax error -The argument type 'void Function(String)' can't be assigned to the parameter type 'void Function(String?)?'(it was occurring during the execution of OnChanged handler in the DropdownButton widget), which was later solved by using the correct data type of String? but u didn't face that issue, can u please explain the difference between String? and String
Thanks for the video. How do I store a value behind e.g. Rupees. Let's say we want a currency calculator and we want the dollar/rupees exchange value behind the item rupees. How can I do that?
Sir, I have used autocomplete in a flutter. it's working properly but I have more than 100000 (lakh) records in the table. in autocomplete the whole table first loading and then get ready for searching, it takes to much time to load and populated in the textbox. I want to show the result bases on entering a value in realtime means when users entering the word it should be getting from the table, not from the autocomplete stored data. Thanks
sir please tell me is flutter app slow and size is bigger . I am stuck between choosing kotlin or flutter . please sir your precious guidilines would be appreciated..
Thanks for the video. I'm trying to build a dropdownmenu that changes its menu items according to another input. I managed to change the list that loads into the dropdownbutton widget, but don't know how to make it refreshes itself. Can you give me some advices?
how about if I don't want to put the default value , I want it to be blank, then I need to add empty value to the list?. because I tried to put currentSelectedItem="" , it shows me an error , the value should be one of the list item.
Alooosh Alsoumahi yes you have to add “” because the value parameter of DropDownButton is equal to _currentItemSelected and the value of “value parameter” should always be one from the list
There are two more better solutions. First: If you don’t want anything to be displayed just simply don’t initialise the variable “_currenItemSelected” and it will be null.(by this you don’t have to place an empty string in the list) Second: you can use “hint” parameter/property of “DropDownButton” widget which simple displays a text widget showing the specified message . So you can just keep that message empty.This message is only seen whenever the app starts only .
hi, thank you for the great tutorials helping me a lot. I have an issue as soon as I add "value" the app crashes. If i remove the value it works fine. Any idea what it might be ? Thanks .
I saw this code setState(() { this._currentItemSelected = newValueSelected; }); Do I need to have "this".. I tried to remove "this" and it works the same too.. any help?
seem to have the same issue, has there been a fix? As soon as I add the line: value: _currentItemSelected it crashes. would be very thankful for a helping hand!
Chris McQueen value of “value parameter” should be present in the list at any point of time(even at the beginning of app) .So check whether you are choosing the value from the list only when initialising the variable “_currenItemSelected” ?
why my code error I am writing a code the same as you. i need to add a code: onChanged: (newValueSelected) async { setState(() { this._currentItemSelected = newValueSelected!; });
For those who get an error this is what I did...
I used
'onChanged: (newValueSelected) {'
instead of 'onChanged: (String newValueSelected) {'
and I added
'value: _currentItemSelected,'
right after the '}' of 'onChanged {'
I hope it helps.
Thanks..!!
All of these tutorials are excellent ... We need still more tutorials on FLUTTER as well as DART...
I hope u will ....
thank you , this is the best tutuorial i have ever seen
I really appreciate the hard work you put to make these videos. thanks,
they saved my mobile development career. kudos!
You're one of the best at teaching. Big thanks!
I was having a syntax error -The argument type 'void Function(String)' can't be assigned to the parameter type 'void Function(String?)?'(it was occurring during the execution of OnChanged handler in the DropdownButton widget), which was later solved by using the correct data type of String? but u didn't face that issue, can u please explain the difference between String? and String
How did u solve this error??
@@deeptichamoli resplace String with String?
@@shantanukhawas8574 also removing from all places can solve the error.
Very well, explained, love this teaching style!
How to implement cascading dropdown from json data, such as selecting category->subcategory
Good demonstration , can we add divider in menu items
Your tutorial is very useful and good explanation, I like it.
Thanks for the description bro, kindly explain how to set initial value of dropdownList in case of getting a list from Provider?
Nice Explanation. How to load data to the Dropdown from an API?
Without hard coded values like this.
very well explained, precise , excellent to start with flutter
Thanks for the video. How do I store a value behind e.g. Rupees. Let's say we want a currency calculator and we want the dollar/rupees exchange value behind the item rupees. How can I do that?
Sir,
I have used autocomplete in a flutter. it's working properly but I have more than 100000 (lakh) records in the table. in autocomplete the whole table first loading and then get ready for searching, it takes to much time to load and populated in the textbox. I want to show the result bases on entering a value in realtime means when users entering the word it should be getting from the table, not from the autocomplete stored data. Thanks
sir please tell me is flutter app slow and size is bigger . I am stuck between choosing kotlin or flutter . please sir your precious guidilines would be appreciated..
Thank you. I would need way more time to figure it out with documentation.
Bro as you used setState() in onChanged(). How we can do this by provider pkg in the stateless widget?
Thanks for the video. I'm trying to build a dropdownmenu that changes its menu items according to another input. I managed to change the list that loads into the dropdownbutton widget, but don't know how to make it refreshes itself. Can you give me some advices?
Can someone explain me what does he mean by generic type: DropDownButton???
Thank you for such excellent videos
I am adding a hint text as select and after the submit button clicked how to reset the dropdown and get the hint text as "select"
How to hint the text in this case like select currency
why thire is no serach option in dropdown button like jquery select tow or html5
Thanks :) after this section we want more advanced videos :)
Database app. Is next
Bildiğin takip ettiğin başka video eğitimler var mı? Altyazı da olmayınca çok zorluyor bunlar. Aksanı tutturamıyorum :D :D
Thanks for yet another good tutorial
How do you easily pass the selected value onto a form for submission either via HTTP POST or SQFLITE?
Hi! thanks for the tutorial. Maybe you know how can I add an image to the drop down menu?
Thanks man
not working for me
done everything but the selected value is not getting updated
how about if I don't want to put the default value , I want it to be blank, then I need to add empty value to the list?. because I tried to put currentSelectedItem="" , it shows me an error , the value should be one of the list item.
Alooosh Alsoumahi yes you have to add “” because the value parameter of DropDownButton is equal to _currentItemSelected and the value of “value parameter” should always be one from the list
There are two more better solutions.
First: If you don’t want anything to be displayed just simply don’t initialise the variable “_currenItemSelected” and it will be null.(by this you don’t have to place an empty string in the list)
Second: you can use “hint” parameter/property of “DropDownButton” widget which simple displays a text widget showing the specified message . So you can just keep that message empty.This message is only seen whenever the app starts only .
hi, thank you for the great tutorials helping me a lot. I have an issue as soon as I add "value" the app crashes. If i remove the value it works fine. Any idea what it might be ? Thanks .
yea me too
figured it out.. So your _currentItemSelected item 'Rupees' must match the first item in _currencies
@@Musicmotivated thank you so much you saved my precious time... I had even faced same issue but you solved it appriciated
app size is too bigger then native app why please answer.
How can i do validation with drop down ?
Muito obrigado, simples e prático.
I saw this code
setState(() {
this._currentItemSelected = newValueSelected;
});
Do I need to have "this".. I tried to remove "this" and it works the same too.. any help?
Both are same. This refers to the current context or instance where you have written code.
@@smartherd ok cool, thanks :)
Here how we can filter Country State, District form Json Data
can we use int value [1,2,3] in DropdownButton and Dropdown Menu Item ?????
Yes
howw ????
so great keep continue
Thanks
How to implement country, state and city dropdown ??
how add operation when, item of Dropdown Menu is selected ?????
It's there in series
amazing
setState method in not showing
It gives error of value is null please answer
seem to have the same issue, has there been a fix? As soon as I add the line: value: _currentItemSelected it crashes.
would be very thankful for a helping hand!
Chris McQueen value of “value parameter” should be present in the list at any point of time(even at the beginning of app) .So check whether you are choosing the value from the list only when initialising the variable “_currenItemSelected” ?
Super bro.
how to rtl it?
Source code?? Can't find it on github
thankyou sir
Long text ?
So on this video, I am the 399th liker.On another one I was the 299th. Ah So Frustrating lol.Although the tutorial has been great thus far.
im 400th liker
@@sibusisondlovu7509 lol nice. Good for you 🤟😂
subtitle pls
Learn english
very confusing tutorial. describing is very poorly
U did this Soo fast I can't even get a thing
Bad tutorial series...
press the button on the most left bottom corner of the video to solve your problem . Hope it helps !
Very bad
why my code error I am writing a code the same as you. i need to add a code: onChanged: (newValueSelected) async {
setState(() {
this._currentItemSelected = newValueSelected!;
});