Questions tagged [dropdownbutton]

DropDownButton is a flutter Widget that creates the Select-Option Menu

201 questions
0
votes
1 answer

Dropdown Button Usage in Flutter - Unhandled Exception: type 'double' is not a subtype of type 'int' of 'value'

I'm trying to use a dropdown button to change some values and then using those values to change object properties and call object methods but im getting the following errors when i attempt to do so, num glute_mev = 2; num glute_mv = 2; num…
0
votes
2 answers

How to change the button name in a dropdown button list to replace the very first one button

I am currently doing a dropdown button and I would like to change the button text to the certain one when user click on it for example when user click on English, the very first button will change to the text English and so on. I have try the method…
0
votes
1 answer

Cannot put two DropDownButtons in Flutter

I'm trying to put two DropdownButtons in the same app, but it doesn't seem to work 'cause value2 doesn't seem to change. Could you help me? Thanks in advance! Here's the code: import 'package:flutter/material.dart'; import…
LollolCat
  • 23
  • 7
0
votes
2 answers

How to use DropDownButton for dynamic list in flutter?

I am trying to implement dynamic dropdownButton in my app where the items of dropdown is going to come from the names of columns in my excel sheet. I am able to show all the columns of excel but I couldn't able to trace the index of column which the…
Madhav mishra
  • 313
  • 4
  • 20
0
votes
1 answer

how can i disable/enable TextFormField based on a selected value from DropDowButton in flutter?

i'm working on a flutter application and i have created a DropDowButton menu with 2 items (private chat and phone number) and a TextFormField phonenum. when phone number is selected, i want to enable the TextFormField phonenum. otherwise it's always…
razan
  • 23
  • 4
0
votes
1 answer

Flutter DropDownButton not showing once selected

I have the following code class InteriorDropdownButton extends StatefulWidget { const InteriorDropdownButton({Key? key}) : super(key: key); @override _InteriorDropdownButtonState createState() => _InteriorDropdownButtonState(); } class…
PedroCova
  • 51
  • 1
  • 1
  • 9
0
votes
0 answers

Flutter Lower drop-down error when selecting drop-down

I made the code like this. model //higt Code class WorkPlaceAddBusinessAcode{ late String? aCode; late String? aName; WorkPlaceAddBusinessAcode(Map mapJson) { this.aCode = mapJson['aCode']; this.aName = mapJson['aName']; …
0
votes
1 answer

Flutter - There should be exactly one item with [DropdownButton]'s value... error with provider

I have a dropdown-menu. My goal is to let the user choose a value of the dropdown-menu. After this the value should be shown as a list above the dropdown-menu. I'm using Provider for storing the choosen value(s) in a List. But when I let the List…
MCB
  • 503
  • 1
  • 8
  • 21
0
votes
2 answers

Error in DropdownButton. There should be exactly one item with [DropdownButton]'s value,

I have created the DropdownBotton inside the ListView and i have a list of values which needs to be displayed in the DropdownMenuItem. I have 2 questions with respect to DropdownBotton, How to set the default value in the DropdownButton for my…
Elam
  • 413
  • 6
  • 19
0
votes
1 answer

Flutter Dropdown Button not saving state during Screen Navigation

Hi I am running into an issue where I am unable to save the state of the DropdownButton (the text shown in the Dropdown Button itself, which is the value that I have selected). I am using GetX for state navigation. Due to the way my code has been…
wepowf
  • 43
  • 6
0
votes
1 answer

Future items empty/null/same values | Flutter

During the process of my web-application I want the user to allow to make changes and save them. For that process I'm using SharedPreferences in order to store the changes. I have a list of titles called konzernDataTitle. In general this list is…
Thoxh
  • 149
  • 9
0
votes
1 answer

Use dynamic list in DropDownButton | Flutter

my problem is following: class Data { final String? image, title, link; final Color? color; Data({ this.title, this.image, this.link, this.color, }); } List dataList = [ Data( title: "XXX", image: "XXX", …
Thoxh
  • 149
  • 9
0
votes
1 answer

Enlarge and Styling for Xceed.Wpf.AvalonDock Drop Down Button

Hi I'm new to AvalonDock and currently I have to handle on a task on others code which implemented this Xceed.Wpf.AvalonDock. My goal is to make the UI become touch screen friendly and first thing I need to enlarge the "Search Tab Button", I'm not…
0
votes
1 answer

Create Dropdown Button that unfolds with hover

I want to create a DropdownButton that unfolds when I hover over the Button. So basically I don't have to click to unfold the DropdownButton. Does anyone has a code sample or could help me with that?
0
votes
1 answer

open DropdownButton items list below the hint text

How to open DropdownButton items list below the hint text not over the whole button If you look at Flutter example with the link below you will see when you click at "One" item it will open all dropdown items over the dropdown. I need that "One"…
blue492
  • 540
  • 1
  • 6
  • 21