DropDownButton is a flutter Widget that creates the Select-Option Menu
Questions tagged [dropdownbutton]
201 questions
3
votes
2 answers
How to combine Dropdown button with TabBar
I would like to combine dropdown button with a TabBar I found a solution but the DropDown button is inside the Tab and you have to press on the letter to display the dropdown button and it does not do so when pressing the entire TabBar that is why…

Enrique Angrisano
- 31
- 3
3
votes
1 answer
How can I make a multi level dependable dropdown List in Flutter?
I have been working on having two dropdown buttons that are meant for the user to easily pick the car model and its respective make. Below is the code snippet of the static lists that I have. Any feedback is highly appreciated.
final List…

Muema
- 57
- 1
- 5
3
votes
2 answers
Flutter: DropDownButton items below button
I want to create a pretty DropDownButton. Unfortunately, this seems to be pretty hard. While the design is fine, whenever I want to select a different item the list drops above the selection in a very ugly way. Below is a picture of the current…

spadel
- 998
- 2
- 16
- 40
3
votes
2 answers
Flutter dropdownButton setState on change not updating dropdown text after selection to show selected item
I created a dropdownButton to allow users to select from a dropdown list which will be populated from an API. For now I am populating using a list I created.
Currently the button is displaying the items from my list but after a selection has been…

Sebastian Flores
- 101
- 2
- 12
3
votes
1 answer
Flutter DropdownButton in DataTable
In flutter I'm trying to have one of the columns of a DataTable be a DropdownButton, where the user can select from the DropdownButton and it changes that cells value (and not any other cells, so don't change values in the 1st column at all).
See…

Chris
- 165
- 4
- 16
3
votes
0 answers
Flutter : DropdownButton menu is not getting opened automatically on being focused
I am working on a flutter web application. I am using two flutter widgets, one is a TextField and the other one is a DropdownButton. When I tap on the text field and shift focus on the drop down field, either by pressing keyboard tab key or by…

PS_02
- 31
- 1
3
votes
1 answer
Flutter DropDownButton Popup 200px below Button
I'm using a DropDownButton with a custom style inside a ListView. My problem is: the PopupMenu opens about 200-300px below the Button so it looks like the Button below that has opened:
I wrapped the Dropdown in a custom style, but i already tried…

Sebastian Rüttger
- 765
- 3
- 10
- 16
3
votes
1 answer
Flutter dropdownbutton error when selecting a value [using Data from api and FutureBuilder]
Hey Guys i am facing a problem i am retrieving data from an api with this code
class carLists{
carLists();
getCarsFromNetwork(String jsonUrl) async {
List list;
String link = jsonUrl;
var res = await http.get(Uri.encodeFull(link),headers:…

Osama
- 513
- 2
- 8
- 18
3
votes
2 answers
Flutter: How to set value of second dropdown button (multilevel dependent buttons) on the basis of first dropdown button value selected?
I'm trying to implement the multilevel dependent dropdown buttons in flutter app and the values of button are fetching from database. While selecting the second dropdown button value I'm getting the error.
`DistrictData…

Sukhdip Singh
- 41
- 1
- 5
3
votes
1 answer
Flutter - DropdownButton value stays empty after selection
Suppose we have created a simple DropdownButton ABCPageState in an ABC stateful widget.
class ABCPageState extends State {
@override
Widget build(BuildContext context) {
return new Scaffold(
body: new Container(
…

kosiara - Bartosz Kosarzycki
- 10,922
- 12
- 70
- 83
2
votes
2 answers
Flutter. How to implement editable text field with DropDownButton?
I am trying to implement a TextField with DropDown menu, just like DropdownButtonFormField but with ability to edit it like ordinary text field. So user have options to fill the field by hand or to make a choice from drop down…

Parafin
- 89
- 3
- 7
2
votes
2 answers
Cannot change Dropdown button value Flutter
I want to get the initial value of the Dropdown button from firebase;
but when I try to set the governorateDDValue = selectedUser.governorate; inside the build method
the value of Dropdown get the value from firebase but I cannot change…

FadyFouad
- 815
- 6
- 12
2
votes
1 answer
Widget Test Doesn't Fire DropdownButton onChanged
I have a widget test that taps an item in the DropdownButton. That should fire the onChanged callback but it doesn't. Here is the test code. The mock is Mockito.
void main() {
//Use a dummy instead of the fake. The fake does too much stuff
…

Christian Findlay
- 6,770
- 5
- 51
- 103
2
votes
1 answer
Add dropdown button to component
I want to add a dropdown button which usually works as an expand / collapse button in a treegrid. I can't seem to find in the documentation how to add a button which is the exact width and height of the dropdown button, e.g. the specific (custom)…

Michael Kročka
- 617
- 7
- 22
2
votes
1 answer
Flutter DropdownButton returns error for onChange event
I'm writing a project and wants to add a DropDownButton but it always return error once I add onCnange event. Dropdown always returns error. I don't know what's wrong with it.
@override
Widget build(BuildContext context) {
return Material(…

ken4ward
- 2,246
- 5
- 49
- 89