Questions tagged [flutter-dropdownbutton]
94 questions
0
votes
1 answer
Is there any way to show the unique value in Dropdownbutton list?
My code is :
Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text.rich(
…

Mehedi Hasan Sumon
- 29
- 5
0
votes
1 answer
dropdown button in Drawer flutter
I try to add dropdown button in drawer header but I face issue
dropdown button
this is my code
import 'package:flutter/material.dart';
type here
import 'package:test/Screens/change_password_screen.dart';
import…

sarah
- 13
- 3
0
votes
1 answer
Flutter : DropdownButtonFormField2 selected item changes to initial value on screen rotation
In my flutter application screen I have a DropdownButtonFormField2 which list various financial years, where after fetching the financial year list I set the current financial year as the initial(default) selected value in the dropdown as code…

KJEjava48
- 1,967
- 7
- 40
- 69
0
votes
0 answers
Access ID of user from a given map on click of dropdown - Flutter
I had a map given below. The task is to create a dropdown with values showing in the dropdown and when selecting those values I get to store keys in a list.
On Selecting the name of the user. The ID must be selected and stored in a list.
Tried using…

Abhay Sharma
- 15
- 6
0
votes
1 answer
DropDown Selection Is Not Displaying In Flutter
Dropdown button menu item is not displaying after selecting the item.
When users needed to select a single item from a list of the available items, but flutter is not displaying the selected item
class TaskTitleDiaglogscreen extends StatefulWidget…

faiz
- 13
- 3
0
votes
1 answer
Show dropdown boundary if focused
I am making an android TV app using Flutter. How to show the boundary on a dropdown widget if the dropdown is focused?
I tried wrapping the dropdown with focus but then I could not access dropdown items.
Focus(
focusNode: _focusNode,
…

Alok Kumar
- 3
- 2
0
votes
0 answers
I have problem in dropDownButton in Flutter. Can anyone help me?
here is my code of dropDownButton.I'm trying to making select GenderList dropDownButton but when I assign variable selectedGender to value of dropDownButton it's hide hint text and default select first index value Male.
I want this output
But I'm…

khabib ali
- 1
- 1
0
votes
1 answer
How to implement colours dropdown in flutter?
enter image description here
how to implement this dropdown in flutter?(please refer the image above)
when the dropdown is expanded it should show a list of colours in a circular container.

Rosh
- 29
- 4
0
votes
1 answer
How to add dropdown button in flutter using getx?
How to fix this error? Here is my data table.dart:
Widget build(BuildContext context) {
Controller controller = Get.put(Controller());
return Column(
children: [
SingleChildScrollView(
scrollDirection: Axis.vertical,
…

Muhammad Awais
- 1
- 1
0
votes
3 answers
How can I make dropdownbutton using Getx in flutter?
I'm trying to make dropdownbutton using Getx in flutter
However, it doesn't work.
Even if I choose a value, the value does not been selected.
class BecomePlayerPage2 extends GetView {
const BecomePlayerPage2 ({Key? key}) :…

yunju
- 13
- 5
0
votes
1 answer
In Flutter Desktop, DropDownButton is restricted to the window size. Can we let it overflow?
I am working on a desktop app with Flutter. This application runs as a small dialog on the screen with a dropdown list. I expect the height of the dropdown list to be larger than the dialog's height. In such a case, I want the dropdown list to…

Vikas
- 626
- 1
- 10
- 22
0
votes
1 answer
Showing different forms based on dropdown selection in flutter
I'm creating a mobile application in which I want to use a dropdown to select a "note type" (to create a new note) and based on the selection from the dropdown I want to show a specific form for the selected note type (each note type should have…

J Moss
- 3
- 2
0
votes
2 answers
Flutter dropdown button selected value position
How can I make the selected dropdown item appear first in the list when its opened?
I'm using GetX for state,
is this the proper way of doing it anyway?
This is the code:
var dropdownvalue = 'Default'.obs;
var items = [
'Default',
…

Gryva
- 297
- 1
- 11
0
votes
3 answers
How to reduce the height of the DropDownButtonFormField so that the text inside it does not go out of the middle in flutter?
When I set a height for my container that is the parent of DropDownButtonFormField, I have no problem when the height is 55, but when the height is less (42) than a certain limit, the text inside it looks like this.
As it is clear in the picture,…

seyyed javad
- 23
- 9
0
votes
2 answers
Flutter - DropdownButton not showing selected item
When I select one of the items in the DropdownButton it is suppose to change from the hint text to the selected item.
It keeps on showing the hint text, like I did not select any thing. Although I print the selection to the console and I can see my…

Johan Scheepers
- 113
- 7