Questions tagged [dropdownbutton]

DropDownButton is a flutter Widget that creates the Select-Option Menu

201 questions
1
vote
1 answer

NoSuchMethodError Flutter

Help me please... I tried to solve this problem since some days but nothing worked T.T I have a DB phpmyadmin I want to show a list from json delivered by a php url. I tried to adapt this code,…
Dorian
  • 13
  • 5
1
vote
2 answers

How to change default value of dropdownButton in flutter?

I`m creating a dropdown button in flutter, but i have a problem when i use dropdown it shows the name of the first item but i want to change it(default value) to categories and idk how to do that, also i tried to use hint(as you see in codes)but it…
Navid Shokoufeh
  • 341
  • 6
  • 21
1
vote
1 answer

How to set padding for items in dropdown button when clicked in Flutter application

I'm trying to set margin/padding top for the list of items that come in dropdown button when clicked. How to set padding for dropdown button. After clicking dropdown button I get the items on top of the view like this, I need to get the items…
Terin Tittu
  • 143
  • 1
  • 1
  • 15
1
vote
1 answer

Flutter dropdown with scroll controller?

Trying to find a dropdown example with scroll controller. What I'm trying to achieve is to load more data when it reach the end of the dropdown, I tried DropdownButton and PopupMenuButton, both no luck as it didn't have a scroll controller…
1
vote
0 answers

Dropdown not working in ipa release. working in Android , also on the simulator in iOS

In the attached screenshot, there is a city filed below Address2, which is being replaced by a gray area. This is working in Android properly, also on the simulator in iOS, but not in IPA release app.
Prachi S
  • 11
  • 1
1
vote
1 answer

Selecting from a dropdown list and updating the same list the same time in flutter

How do I ensure that a user does not select the same security question twice by hiding the initially selected question from appearing in the second dropdown button and vice versa in flutter?. i am making a request to the same api for the…
Vincent Agbo
  • 43
  • 1
  • 8
1
vote
0 answers

Using TextEditingController to pass the item in dropdown, in flutter

I have built a dropdown which has a dropdown list. The item that is selected from the list should be passed to another page, hence, I have used the TextEditingController variable to do that. But the problem is that the dropdown button doesn't allow…
yamini r
  • 153
  • 1
  • 15
1
vote
1 answer

How to stop dropdownButton closing with every selectInput selection

I am working on a shiny app that has multiple selectInput under a dropDownButton menu. Problem is that when users select one selectInput the dropdownButton closes. For selecting all the selectInput users need to click on the dropdownButton multiple…
Tanzir
  • 11
  • 1
1
vote
1 answer

How to make a dynamic dropdownbutton list in Flutter ? (delete items)

I have an issue with the dropdownbutton in Flutter. To make it quick, I have a list of cities in Cloud Firestore which is used to make the list (items) of the dropdownbutton. This list of cities is getted with a StreamBuilder so when I changed the…
1
vote
2 answers

DropdownButton - Set value: with value NOT contained by The list of items the user can select - Flutter

I have this DropdownButton with two items in it's List When i Select Value 2 i'd like it to show a value not contained in the list Like this : Is it even possible ? It would look something like this : DropdownButton( value:…
Aristidios
  • 1,921
  • 2
  • 13
  • 24
1
vote
1 answer

Dropdown button not expanding

I'm trying to build a form with a DropdownButtonFormField with 4 items but i don't know why it doesn't want to expand. Added isDense : true but it wasn't because of it being too small Here's the button code new Container( child:…
Rafien
  • 23
  • 3
1
vote
1 answer

Why stateful widget unable to maintain it's state in flutter

In my program I put the add button to create stateful box with stateful drop down button inside of it, each time I add the box I add it to Map and pass it to the column. When I click on the cross button it delete the widget from the map…
ibex
  • 103
  • 1
  • 6
1
vote
1 answer

Concatenate two document.data()['field'] fields

I am trying to concatenate 2 fields from a firestore document. The data exists and the DropdownMenuItem populates if I use just one field. However, if I use 2 fields I get an error "Invalid arguments". How do I concatenate the 2 fields (fName and…
LostTexan
  • 431
  • 5
  • 18
1
vote
0 answers

DropdownButton in Flutter that references Firebase will not overwrite initialvalue after selection

I've built a Flutter form to edit a user profile, with TextFormFields and DropdownButtons. The initialvalues are called from Firebase using a FutureBuilder. And the lists in the Dropdowns are streamed from Firebase too. Question 1: In the…
1
vote
2 answers

Flutter: Close DropdownButton (DropdownMenu)

Is there a way to close the selection menu of a DropdownButton containing all the DropdownMenuItems when an onTap function is executed (GestureDetector inside a DropdownMenuItem)? Here is my implementation of the approach of Alperen Baskaya (in a…
PlutoHDDev
  • 540
  • 7
  • 25