Flutter DropdownButton Tutorial: Dropdown Menu Item List for beginners: Flutter with Dart #3.4

Поделиться
HTML-код
  • Опубликовано: 2 дек 2024

Комментарии • 82

  • @MLEncyclo
    @MLEncyclo Год назад +1

    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.

  • @vinayvishnu6279
    @vinayvishnu6279 4 года назад +4

    All of these tutorials are excellent ... We need still more tutorials on FLUTTER as well as DART...
    I hope u will ....

  • @huangshufen2211
    @huangshufen2211 5 лет назад +4

    thank you , this is the best tutuorial i have ever seen

  • @omar_kunta
    @omar_kunta 5 лет назад +2

    I really appreciate the hard work you put to make these videos. thanks,
    they saved my mobile development career. kudos!

  • @НеляФэн
    @НеляФэн 4 года назад +1

    You're one of the best at teaching. Big thanks!

  • @shantanukhawas8574
    @shantanukhawas8574 3 года назад +4

    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

    • @deeptichamoli
      @deeptichamoli 3 года назад

      How did u solve this error??

    • @shantanukhawas8574
      @shantanukhawas8574 3 года назад +1

      @@deeptichamoli resplace String with String?

    • @umer_yaseen
      @umer_yaseen 3 года назад

      @@shantanukhawas8574 also removing from all places can solve the error.

  • @arthurfacredyn
    @arthurfacredyn 5 лет назад +5

    Very well, explained, love this teaching style!

  • @BudiYunior
    @BudiYunior 5 лет назад +3

    How to implement cascading dropdown from json data, such as selecting category->subcategory

  • @vishalvishvakarma7323
    @vishalvishvakarma7323 3 года назад

    Good demonstration , can we add divider in menu items

  • @KhaingOfficial
    @KhaingOfficial 5 лет назад +1

    Your tutorial is very useful and good explanation, I like it.

  • @mshahzaib1629
    @mshahzaib1629 4 года назад

    Thanks for the description bro, kindly explain how to set initial value of dropdownList in case of getting a list from Provider?

  • @anojamadusanka8914
    @anojamadusanka8914 4 года назад

    Nice Explanation. How to load data to the Dropdown from an API?
    Without hard coded values like this.

  • @poojabhatt2854
    @poojabhatt2854 4 года назад

    very well explained, precise , excellent to start with flutter

  • @TheBadaboombadabang
    @TheBadaboombadabang 4 года назад

    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?

  • @arshadkhanSherani
    @arshadkhanSherani 4 года назад

    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

  • @realityandtruth9662
    @realityandtruth9662 3 года назад

    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..

  • @myrtasz1036
    @myrtasz1036 4 года назад

    Thank you. I would need way more time to figure it out with documentation.

  • @qamarabbasi4695
    @qamarabbasi4695 3 года назад

    Bro as you used setState() in onChanged(). How we can do this by provider pkg in the stateless widget?

  • @Tonyluo2001
    @Tonyluo2001 4 года назад

    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?

  • @aadityanaik9953
    @aadityanaik9953 2 года назад

    Can someone explain me what does he mean by generic type: DropDownButton???

  • @RNMERIA
    @RNMERIA 4 года назад

    Thank you for such excellent videos

  • @padmatirumalareddy1715
    @padmatirumalareddy1715 4 года назад

    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"

  • @Himricks
    @Himricks 4 года назад

    How to hint the text in this case like select currency

  • @attaroams
    @attaroams 4 года назад

    why thire is no serach option in dropdown button like jquery select tow or html5

  • @YasinIlhan61
    @YasinIlhan61 6 лет назад

    Thanks :) after this section we want more advanced videos :)

    • @smartherd
      @smartherd  6 лет назад +1

      Database app. Is next

    • @enesaslan3275
      @enesaslan3275 5 лет назад

      Bildiğin takip ettiğin başka video eğitimler var mı? Altyazı da olmayınca çok zorluyor bunlar. Aksanı tutturamıyorum :D :D

  • @axelpedersen1709
    @axelpedersen1709 6 лет назад

    Thanks for yet another good tutorial

  • @isaiahbot
    @isaiahbot 5 лет назад

    How do you easily pass the selected value onto a form for submission either via HTTP POST or SQFLITE?

  • @Igalsr
    @Igalsr 5 лет назад

    Hi! thanks for the tutorial. Maybe you know how can I add an image to the drop down menu?

  • @ritheshjarvis4177
    @ritheshjarvis4177 3 года назад

    Thanks man

  • @aayushsahay7711
    @aayushsahay7711 3 года назад

    not working for me
    done everything but the selected value is not getting updated

  • @aloooshalsoumahi5124
    @aloooshalsoumahi5124 5 лет назад

    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.

    • @bhaskarmahajan98
      @bhaskarmahajan98 5 лет назад

      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

    • @bhaskarmahajan98
      @bhaskarmahajan98 5 лет назад

      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 .

  • @its_gireesh
    @its_gireesh 5 лет назад

    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 .

    • @Musicmotivated
      @Musicmotivated 5 лет назад

      yea me too

    • @Musicmotivated
      @Musicmotivated 5 лет назад +3

      figured it out.. So your _currentItemSelected item 'Rupees' must match the first item in _currencies

    • @sansritpaudel8455
      @sansritpaudel8455 5 лет назад

      @@Musicmotivated thank you so much you saved my precious time... I had even faced same issue but you solved it appriciated

  • @AmanGupta-ll6zt
    @AmanGupta-ll6zt 5 лет назад +1

    app size is too bigger then native app why please answer.

  • @premchandraseakaran1847
    @premchandraseakaran1847 2 года назад

    How can i do validation with drop down ?

  • @cristianperesdelima7402
    @cristianperesdelima7402 5 лет назад

    Muito obrigado, simples e prático.

  • @ericjonas6044
    @ericjonas6044 6 лет назад

    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?

    • @smartherd
      @smartherd  6 лет назад +1

      Both are same. This refers to the current context or instance where you have written code.

    • @ericjonas6044
      @ericjonas6044 6 лет назад +1

      @@smartherd ok cool, thanks :)

  • @NileshKumar-mk2ze
    @NileshKumar-mk2ze 4 года назад

    Here how we can filter Country State, District form Json Data

  • @aayushsigdel2993
    @aayushsigdel2993 6 лет назад

    can we use int value [1,2,3] in DropdownButton and Dropdown Menu Item ?????

  • @abdulwahid_mohammed
    @abdulwahid_mohammed 6 лет назад

    so great keep continue

  • @usertest143
    @usertest143 5 лет назад

    How to implement country, state and city dropdown ??

  • @aayushsigdel2993
    @aayushsigdel2993 6 лет назад

    how add operation when, item of Dropdown Menu is selected ?????

  • @rinkeshsingh6457
    @rinkeshsingh6457 3 года назад

    amazing

  • @fazilmf5317
    @fazilmf5317 4 года назад

    setState method in not showing

  • @akshatbhawsar9662
    @akshatbhawsar9662 5 лет назад

    It gives error of value is null please answer

    • @chrisjasonmcqueen
      @chrisjasonmcqueen 5 лет назад

      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!

    • @bhaskarmahajan98
      @bhaskarmahajan98 5 лет назад

      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” ?

  • @krishnakumarramachandran5888
    @krishnakumarramachandran5888 6 лет назад

    Super bro.

  • @mojtabatavakkoli2057
    @mojtabatavakkoli2057 5 лет назад

    how to rtl it?

  • @TheBadClover
    @TheBadClover 4 года назад

    Source code?? Can't find it on github

  • @judaspontifex
    @judaspontifex 5 лет назад

    thankyou sir

  • @jahirglz4578
    @jahirglz4578 5 лет назад

    Long text ?

  • @AnkitTiwari-dw9er
    @AnkitTiwari-dw9er 4 года назад +2

    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.

  • @enesaslan3275
    @enesaslan3275 5 лет назад

    subtitle pls

  • @learningwithme382
    @learningwithme382 3 года назад +2

    very confusing tutorial. describing is very poorly

  • @aayushsingh8885
    @aayushsingh8885 5 лет назад +1

    U did this Soo fast I can't even get a thing

    • @aayushsingh8885
      @aayushsingh8885 5 лет назад

      Bad tutorial series...

    • @muhamadafiq650
      @muhamadafiq650 5 лет назад +1

      press the button on the most left bottom corner of the video to solve your problem . Hope it helps !

  • @bipulsingh4290
    @bipulsingh4290 5 лет назад +1

    Very bad

  • @avtechprint8885
    @avtechprint8885 3 года назад

    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!;
    });