Questions tagged [dropdownbutton]

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

201 questions
2
votes
0 answers

Flutter: How to use the selected DropDownButton item to display a chart?

everyone. I'm trying to get to show a bar chart on the screen when the user selects a certain item from the Dropdown. I have a different file for data that is to be displayed in the chart. So what I'm asking is sort of an 'if else' condition i.e. if…
Newman
  • 33
  • 1
  • 6
2
votes
1 answer

Flutter: DropdownButton's incorrect popup position

My dropdown button's popup position is incorrect. I don't get what's causing this issue, popup moves in the right side of the button, its somewhat related to the Row widget and builder. I am on the master branch. Check the sample code here DartPad…
Abdul Rafay
  • 143
  • 13
2
votes
1 answer

How can I populate dropdown using sqflite?

I can not populate DropDown from database. Future>> getProjectsMapList() async { Database db = await this.database; var result = await db.query(projectTable); return result; } Future>…
Jorden
  • 708
  • 3
  • 10
  • 20
2
votes
3 answers

Flutter/Dart: Handling Dropdown changes within a ListView.builder, Dropdown button not updating,

I'm guessing I'm missing something simple but I've been at this for days trying every possible solution. How do we handle dropdown selection in a listview.builder? Is it possible to store dropdown button values in a List-String-? I am creating a…
plam
  • 313
  • 1
  • 4
  • 17
1
vote
0 answers

Flutter dropdown failed assetion

the following code displays a list in a dropdown after loading it with the function called in the FutureBuilder. However, the following exception is displayed when the dropdown is selected. How can I resolve it, and what is causing…
riki
  • 1,502
  • 5
  • 17
  • 45
1
vote
1 answer

How to trigger multiple dropdown buttons using javascript?

I want to have multiple dropdown buttons, but I'm not sure how to optimize my javascript so that it can include multiple IDs that can trigger more than one dropdown while also the arrow to the right of it rotates as the dropdown menu is triggered.…
1
vote
2 answers

Flutter DropdownButtonFormField same value error

I have two DropdownButtonFormfield on my page. They have relation. The second is filling after select an item from first. I am facing an error on this situation: Select an item from first, select an item from second, change the first value. I am…
1
vote
1 answer

Dropdownbutton with int and string value

I'm trying to make a dropdownbutton with int and string value in it, but I don't know how to call both string and int at the same time. code int selectedValue = 10; List> dropdownItems = [ DropdownMenuItem( value: 10, …
Boy Ube
  • 13
  • 4
1
vote
1 answer

Wants to align drop down list to the center for drop down button2 in flutter

In flutter I wants to center align the drop down list.below is my current code can someone guide me regarding this. I wants to align it center just below the drop down button.Should I have to align text widget or is there any other property to set…
1
vote
1 answer

How can i call/assign individual variables from the list

From the 'Cel' class, I want to transfer data from the 'cel_lista', but only the 'cel' items enter image description here ` here is the 'Cel' class code class Cel { late String cel; late int wartosc = 1; Cel({required this.cel, required…
Mariusz Z
  • 11
  • 1
1
vote
1 answer

How to add a label inside the dropdown item with list inside the list (FLUTTER)

List> category = [ { "name": "One", "detail": ['1', '1', '1', '1', '1', '1'] }, { "name": "two", "detail": ['2', '2', '2', '2', '2', '2'] }, { "name": "three", "detail":…
Edward
  • 89
  • 1
  • 6
1
vote
1 answer

How to display data from an API in a dropdown menu

I need to display data from an API get request in a dropdown, and when selecting a item from the drop down menu I need to save the id of the selected item into a variable. Here is the URL "https://reqres.in/api/users?page=1". I have checked other…
1
vote
1 answer

flutter dropdownbutton won't keep answer after scrolling

i'm crating an app where the user can make different choices from a list of questions , just the dropdownbutton won't keep the chosen answers after the user scrolls down to the other questions check the GIF i' working with the Provider state…
1
vote
2 answers

React: CSVLink not working when put inside MenuItem in DropdownButton

I have code in a React file like this: import {Dropdown, DropdownButton, MenuItem} from "react-bootstrap"; import {CSVLink} from "react-csv"; Export …
Light Yagami
  • 961
  • 1
  • 9
  • 29
1
vote
1 answer

dropdownbutton inside popupmenubutton works but wont show updated selected value (flutter)

When placing a DropdownButton inside of a PopupMenuButton the dropdown still works but the newly selected value isn't reflected in the DropdownButton's header. Way to recreate: flutter create -t skeleton test_app Test: By clicking on the settings…
Dan1ell
  • 355
  • 1
  • 4
  • 15
1 2
3
13 14