DropDownButton is a flutter Widget that creates the Select-Option Menu
Questions tagged [dropdownbutton]
201 questions
0
votes
2 answers
How do I set hint dynamic in flutter DropDownButton?
I want my Dropdownbutton to change according to the item selected by the user. These are my variable declarations:
class _HomeState extends State {
final gb_controller = TextEditingController();
final brutto_controller =…

Phil
- 321
- 1
- 17
0
votes
1 answer
How to set Dropdownbutton's Items with data from Web in Flutter?
I'm making an app using Flutter.
What I want to do is DropboxList's Items attribute setting with data from web, which I obtain by Http.get.
However, because of synchronization problem (I guess), it's hard to control.
The following is my code and I…

chan hong Park
- 45
- 2
- 10
0
votes
1 answer
Dependent flutter dropdownbutton with firestore
Can you please share an example of cascading dropdown backed by firestore in flutter? I need the code.
Thanks

shahidpharm
- 9
- 2
- 5
0
votes
1 answer
Flutter: how to use DropDownButton?
i'm trying to build a DropdownButton widget of multiple elements, but I'm miserably failing even if I read multiple tutorials on the Internet.
How can I go about creating a simple DropdownButton of 4 elements ?
Thanks for your time
Here's what I…

Lura
- 99
- 2
- 7
0
votes
1 answer
Using the DropdownButton value
I built a beautiful DropdownButton in my flutter app, but have had a hard time finding out how to actually use it.
How can I extract the selected value?
I want to use it to update the settings for my search bar. When a user selects '1' the search…

Bill Watts
- 21
- 4
0
votes
0 answers
DropdownButton doesn't re-render the menu when items change
DropdownButton doesn't reflect menuItem's changes when the dropdown menu is open.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
static const String _title = 'Flutter Code Sample';
…

Daniel
- 31
- 2
0
votes
1 answer
DropdownButton selection calls the onValidate functions of other fields in Flutter
Not sure what I'm missing. When selecting the value of drop-down, form onVaidate() fired which hence my other fields are showing the error. How can I stop it? Here is the code
Widget build(BuildContext context) {
// return Scaffold(
// appBar:…

Rajesh
- 10,318
- 16
- 44
- 64
0
votes
1 answer
How to add underline in items DropdownButton
How can I add the underline for DropdownButton items, I have tried underline like below but it didn't work
DropdownButton(
isExpanded: true,
hint: Text("Status"),
value: value.selected,
…
user14052489
0
votes
1 answer
Is it possible in a dropdown button the displayed value to not be in the menu?
I tried to do it but I get an error. I was wondering if there is some kind of loophole.
Also, is there a way for the menu to open below the displayed value?
Here is the code:
import 'package:flutter/material.dart';
import './grile_view.dart';
class…

TheHealthyGaming
- 23
- 5
0
votes
0 answers
DropDownMenuItem Text Is Huge and Double Underlined
My drop down button shows abnormally large text and has this weird double underline. I did some googling prior and people were saying to make sure you Material at the root. I've made this adjustment and it didn't seem to fix the issue. Any idea what…

Gabriel
- 346
- 5
- 24
0
votes
2 answers
Flutter: Dropdownbutton does not update to display selected choice
I am trying to use a dropdown button to have the user select from a list of options, however after making a selection the dropdown button remains displaying the hint. I think something about the setState is not updating the dropdown button.
…

Ryan Bowman
- 13
- 4
0
votes
0 answers
Flutter dropdownbutton evaluting value from json
```{"Piece": "[{\"sno\":7,\"valueName\":\"3\",\"value\":\"200\"},{\"sno\":7,\"valueName\":\"3\",\"value\":\"200\"},{\"sno\":7,\"valueName\":\"3\",\"value\":\"200\"}]",
"Caret":…

tushar kumar
- 33
- 8
0
votes
2 answers
Value property doesn't update for dropdownfield when I do setState in flutter
I am updating the dropdown table dynamically from an API. When I select an hour, the corresponding subjects are retrieved from the API.
Let's say I am switching between hours.
Hour 5 has the subjects A and B while hour 4 has the subject B…
0
votes
1 answer
Flutter DropdownButton conditions not working
I have a list of values meant to be parsed into a dropdown button with JSON from a rest API. Values are parsed fine and well but I applied a condition that when there is no list of values available to display then it should simply show a single text…

yodeveloper
- 125
- 2
- 18
0
votes
1 answer
Flutter: custom made dropdown button function doesn't show selected value
I'm trying to make a custom function which returns a dropdown menu. The function takes 3 arguments: menuTitle, selectedValue and list of Strings.
List cities= ['Rome', 'London', 'Paris'];
String selectedCity;
String title='Select a city';
…

olanow20
- 35
- 6