DropDownButton is a flutter Widget that creates the Select-Option Menu
Questions tagged [dropdownbutton]
201 questions
0
votes
2 answers
How I can to change background color in Dropdown button in WPF ToolBar?
How I can to change background color in Dropdown button in WPF ToolBar?
Update:
XAML code:

Ejrr1085
- 975
- 2
- 16
- 29
0
votes
1 answer
When I change dropdown button, it effects to the next one
When I add a new list element to my list and trying to change grade. This thing is not as effecting as I want. It is effecting the next item, probably it is an algorithm error. I hope you can understand the problem. I tried to add a variable for…

Altug
- 13
- 4
0
votes
1 answer
I am trying to fetch data from the api and display it in a DropDownButton. problem is that snapshot is returning null
snapshot.hasData is returning null and the drop button never gets displayed.
I am trying to fetch data from the api and display it in a dropdown button.
the response.body is fetched correctly as it gets printed when i try to print it.
But when I…

Ankit Singh
- 143
- 3
- 11
0
votes
2 answers
how to apply css class on Button element inside the DropdownButton react-bootstrap?
I am using Dropdown button from react-bootstrap. I want to apply class on button element inside DropdownButton. It is applying to outer div if I pass className to DropdownButton. Instead it should get applied to button element. Below is the code I…

Vaibhav Jain
- 1
- 2
0
votes
1 answer
Flutter how to change font color of DropDownButton
Im trying to change the font color of my DropdownButton in flutter right now its black and i want to change it to white is there any way to do this?
Thank you for you time.

André Sousa
- 187
- 4
- 17
0
votes
1 answer
How to give a constant width to a Flutter DropdownButton widget?
How can I give a constant width to a DropDownButton in a Flutter?
As I got to know why they both DropDownButton as different width size in below image,
as 1st one as the highest length of value "100%" in it & the
2nd one as highest value as "90%"…

Uday
- 1,619
- 3
- 23
- 48
0
votes
1 answer
Flutter set state from dropdownbuttton not updating value
Hello i'am trying to update a DropdownButton in a alert dialog, but it seems to not update the selectedValue.
Here is the code :
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => new _MyAppState();
}
class _MyAppState…

Axel Masson
- 19
- 6
0
votes
1 answer
DropDown Buttons in a side menu items
I've made a side menu with items but what I need now is to add another sub menu for each item.
What should I do to accomplish that?
class CustomListTitle extends StatelessWidget{
//....
Row(
children: [
Icon(icon),
…

Sarah Abouyassine
- 169
- 1
- 2
- 13
0
votes
1 answer
How to change DropdownButton's selected index in Flutter
I want to change my DropdownButton selected index on page load, how can I do that?
My DropdownButton is a list of PlateType objects and I need to change the selected index to some index that means old user selection.
Following is my code: …

Mohsen Emami
- 2,709
- 3
- 33
- 40
0
votes
4 answers
Centering the selected value of a DropdownButton
I am able to center the text items used in DropdownMenuItems provided to the DropDownButton, but how can the selected item be centered when the menu is closed?

AlanKley
- 4,592
- 8
- 40
- 53
0
votes
1 answer
shinywidget dropdownButton CSS tag
I'm using the dropdownButton widget but i'm struggling with the css.
I have tried this:
dropdownButton(inputId = "MyDropDownB1",
tags$div(style = "background-color: #393D3F !important;",
checkboxGroupInput(...)
),
circle…

Roberto
- 745
- 4
- 19
0
votes
1 answer
Flutter - DrowpdownMunu Items not populating from List
I'm stuck with a DrowdownButton that is not populating any data.
It's populating from a list passed from the previous screen.
My debug indicates that the list has data that can be parsed. The output just produces an empty DropdownButton.
import…

Duncan Pullen
- 355
- 3
- 13
0
votes
1 answer
How to enable a button in Flutter,when dropdownbutton has value?
colleagues ! I'm noob in Flutter.This is my first app,and I'm trying to enable the button only when the user chooses a value from the dropdownbutton.
I was trying to find a similar question,but didn't find.
class Reserve extends StatefulWidget {
…

Bojke
- 646
- 1
- 6
- 21
0
votes
0 answers
How to fix the list size in drop down button to a number and make it scrollable in flutter?
I want only 3 items to be visible at a time so that the entire screen doesn't get covered but the options can be even 20. Rest of the options should be visible on scrolling.
I am able to scroll but the size of list is covering entire screen.

Keerti Purswani
- 4,878
- 3
- 16
- 29
0
votes
1 answer
Disable elements when Shiny is busy
I'm using a piece of javascript from this question: SO
It works for buttons, but I would also like to disable things like sliderInput, selectInput and textInput as well.
I tried to replace the 'button' with 'input' which does disable the textinput…

Mark
- 2,789
- 1
- 26
- 66