DropDownButton is a flutter Widget that creates the Select-Option Menu
Questions tagged [dropdownbutton]
201 questions
0
votes
1 answer
I want to change item height in my dropdown button flutter
first Photo second photo I have a costum dropdown menu and each of the rows have a dropdown button. The problem is that the items of my dropdown button are too long to be fit in one row so can i expand the itemHeight so some of my dropdownButton…

Gentjan Shtjefni
- 3
- 6
0
votes
1 answer
Flutter: how integrate function in the "DropdownButton" class and pass value to the parent class
I am trying to integrate a child class (implementing DropdownButton with four values: 2, 4, 6, and 8) to a parent class which should show some content depending on the value chosen.
If user clicks on one of the drop down values ie: 2, a widget on…

Budjoni
- 15
- 1
- 1
- 4
0
votes
1 answer
Flutter - There should be exactly one item with [DropdownButton]'s value
Please someone help me. I created DropdownButton with map key and values on StatefullWidget
I am using a map here because I am sending the selected key of value to the parent widget.
I am getting error:
There should be exactly one item with…

Otabek Ochilov
- 33
- 5
0
votes
1 answer
DropdownButton - error after updating flutter
I just find out that this part of code is not working any more after updating flutter.
I do not understand what is the problem. It was working well before.
If you can help me to fix this your help will be appreciated. Many thanks.
the complete error…

Laurent Thomas
- 232
- 4
- 24
0
votes
1 answer
in flutter I can not change value from dropdown button
below the StatefulWidget class Customdropdownbutton where I defined the dropdown button
class Customdropdownbutton extends StatefulWidget {
Customdropdownbutton({@required this.defaultValue, @required this.listValue, this.enable});
String…

Massi
- 13
- 3
0
votes
2 answers
Drop down button value text is not change in flutter/dart
I have issue with with my code that I have define a Drop down button menu, It will appear the arguments and when I click on arguments, it will be select that value its not gonna change in dropdown button. plus my code is defined in the stateful…

ashkan_arz
- 35
- 1
- 7
0
votes
1 answer
How to reset a Value of DropdownButtonField inside OnChanged
I have a DropdownButtonFormField where the last item is a DropdownMenuItem to add a new Object using a Dialog.
Padding(
padding: const EdgeInsets.only(bottom: 15),
child: Observer(
builder: (_){
return DropdownButtonFormField(
…

Gustavo Viana
- 3
- 2
0
votes
2 answers
Flutter DropdownButton - expand outside of parent element
I need the flutter dropdownbutton to be expanded much more out of its parent so all dropdown menu items would fit into it.
Now I'm using Row > Expanded > DropdownButton + isExpanded and here is the result
here is the scaffold structure:
Scaffold(…

okarpov
- 864
- 14
- 22
0
votes
0 answers
How I can change a text in a TextFormField when a ComboBox changes (in Flutter)?
I would like show the default user and password for a database when I select the DBMS.
But when I change the dropdown value the user and password is not changed even I have changed its value.
Look the code:
import 'dart:html';
import…

Fernando Lima
- 101
- 1
- 7
0
votes
1 answer
Flutter Dropdownbutton selected value is not changing
Flutter Dropdownbutton selected value is not changing I am using dropdownbutton and mapping data using Product model but onchange my value is not changing
DropdownButtonHideUnderline(
child: DropdownButton(
…

Basit Amin
- 35
- 3
0
votes
1 answer
What is the best practice to display data from API call to a Flutter DropdownButton?
Currently my app is making an http request to an API that gives me json with some items listed, this json get assigned to a List variable. I am already pulling in this data into my app but need to display it on a DropDownButton. To display this data…

Sebastian Flores
- 101
- 2
- 12
0
votes
0 answers
Flutter DropdownButton with error "RangeError (index): Invalid value: Not in range 0..10, inclusive: 11"
I have a page for item insert and inside it a DropdownButton contains list of categories to select from. Then there is a button beside it you use to add a new category into the dropdown items without reload the page "image below"
dropdown with…

Fidz
- 33
- 6
0
votes
2 answers
Overflowed By with DropdownButton in Flutter
Background: Hello. I have just started learning Flutter and I have run into an Overflowed By error when trying to create a dropdown menu in the top left corner of the app I'm building.
Question:
How can I accurately format a dropdown menu in the top…

M A F
- 291
- 4
- 14
0
votes
1 answer
DropDownButton item not being selected
I am trying to put a DropdownButton on one of my screens. I have followed several examples but I can not get it to show the selected item. It keeps showing the first item in the list.
String _trxnStatus = 'Listed';
DropdownButton(
…

LostTexan
- 431
- 5
- 18
0
votes
1 answer
How to reset the dropdown button in flutter?
I have a dropdown button which works fine when I visit the page(having the button) first time but whenever i revisit the page containing the dropdown button, the previously selected value appears rather than the hint text which i want to appear…

Nikhil Asrani
- 3
- 4