hint not working for DropdownButtonFormField in Flutter

I have a form in <strong>Flutter</strong> with textformfield and dropdownbuttonformfield. While running my app hint is not working for me. <strong>hint</strong> not sh...

Flutter: Width of DropDown menu independent of Button size

I have two <code>DropDownButton</code>s in one Row. <pre><code> DropdownButtonHideUnderline( child: DropdownButton( isExpanded: true, value: item,...

Flutter dropdown button selected value position

How can I make the selected dropdown item appear first in the list when its opened? I'm using GetX for state, is this the proper way of doing it anyway? ...

Flutter drop down menu with HTTP database

I am trying to retrieve JSON code map from my database and I am trying to put part of that map into a drop-down menu. I am pretty new to all of this and appreciate any...

Flutter cast RenderObject to RenderBox

I am trying to follow this <a href="https://www.youtube.com/watch?v=j5DkShqvIAU" rel="noreferrer">tutorial</a> creating a <code>DropDown</code>. But I can not copy his...

Show value of dropdown with empty value at the beginning

I would like that in my dropdown at the beginning no value is entered. only if I select the value it should be displayed in the dropdown. if I comment out value:...

Flutter: There should be exactly one item with [DropdownButton]s value

I am trying to create a <strong>dropdown button</strong> in Flutter. I am getting a <strong>List from my database</strong> then I pass the list to my <code>dropdownBut...

Flutter dropdown button text overflow

How can i make the text expand to it's content? I Tried this <pre><code>child: DropdownButtonHideUnderline( child: DropdownButto...

How to add textfield value based on drop down item is selected in flutter

here when I am select the value from drop down the country code text field value is changed based on drop-down item is selected, in this example I have some static val...

Flutter - How to get Map data of an Array inside Firestore as Dropdownlist

I'm new in Flutter with Firebase. I'm trying to get all the name from array in Firestore as Dropdownlist.But I can't be able to get all the data in Dropdownlist. Can s...

How should I customize DropdownButtons and DropdownMenuItems in Flutter?

The default <a href="https://docs.flutter.io/flutter/material/DropdownButton-class.html" rel="noreferrer">DropdownButton</a> with DropdownMenuItems returns a light-gre...

Cards as items in the DropdownMenuItem

I would like to know if it is possible to have card widgets as the items in a dropdownmenu button in flutter. I have tried, but I haven't managed to make the ca...

Getting a second dropdown list from the value of the first dropdown list

I am trying to have two dropdown buttons and a Raised button.The first dropdown button will be a list of countries and the second dropdown button will be a list of sta...

Showing the dropdown list with special List and Multiple Dynamic Dependent Dropdown List

<pre><code>List&lt;Map&lt;String, dynamic&gt;&gt; category123 = [ { name: Python, department: second-choice&quot...

How to implement a custom drop down menu item in flutter?

The popup menu seems to assign a default padding to the drop down menu items. Hence I can't achieve the example UI in the mockup. <pre class="lang-dart prettypri...