Questions tagged [dropdownbutton]

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

201 questions
1
vote
1 answer

Multiple Select in DropdownButton in flutter

I know that there is many ways / package to implement multi select in dropdownbutton in flutter like --> this one But with my little knowledge, I want to reinvent the wheel for basic building!!! My scenario -> I have a list of location's in json…
xahid_rocks
  • 632
  • 8
  • 24
1
vote
1 answer

how can i create drowdownbutton with Riverpod Notifier?

I want to create DropDownButton with changenotifierProvider in Riverpod, but i can not write nicely my code. Please help me. I suppose, i just wrote 'watch' method, but i do not know how to read it. So, it should show the item which is chosen, and…
1
vote
1 answer

How to show one row in DataTable with DropdowndownButton in Flutter?

In Flutter, I am trying to have only ONE row with columns and if I change the last name with DropdownButton choices, change the first name column. Instead of: I would like: Full code: import 'package:flutter/material.dart'; void main() =>…
Juan Pablo
  • 13
  • 3
1
vote
0 answers

How to make DropdownButton list to appear below the Item shown in flutter

I am getting the list in DropdownButton above the item shown. But my requirement is the list to start from below the Selected Item.i.e. from below the textBox where selected item is showing. means the list will appear from below the Selected Item…
1
vote
1 answer

How can I test DropdownButton in Flutter with nullsafety? Crashing with

When smoke testing a DropdownButton in Flutter using the flutter_test library I get the following error: The following _TypeError was thrown while dispatching notifications for OverlayEntry: type 'Null' is not a subtype of type…
1
vote
0 answers

Questions on Flutter DropdownButton Value

Hello I'm new to flutter and I'm trying to create multiple DropdownButtons based on different documents in my Firebase backend. Since there may be multiple DropdownButton (different documents have different number of dropdowns to be created), I…
1
vote
1 answer

Flutter: DropDownButton list is not displayed from its start

I'm trying to implement a DropDownButton where the list of items will be displayed from its start. Meaning, I want the items list to be opened and displayed as if the items list "completes" the DropDownButton - right after the green underline and…
AK-23
  • 336
  • 1
  • 2
  • 14
1
vote
1 answer

DropdownButton not showing up in second page of flutter app

My DropdownButton will not show up on the second page of flutter app. This is the DropdownButton code implemented in ConversionRates class (page2): Widget buildDropDownButton(String currencyCategory) { return DropdownButton( value:…
Leon
  • 63
  • 7
1
vote
1 answer

How to manually close react-bootstrap "DropdownButton" in React.js

In react-bootstrap the DropdownButton is suppose to be the short version for Dropdown applied with a Dropdown.Menu and Dropdown.Items but the problem im having is i can't figure out how to to manually open/close the dropdown. It automatically closes…
1
vote
2 answers

Corresponding DropDownButtonFormFields in Flutter

I'm implementing corresponding dropdowns (where the options of the second dropdown depend on the first like so) that uses a list of objects in this format: List states = [ new State(stateId: 1, stateName: "New York", cities: [ new…
David Ferraro
  • 55
  • 1
  • 6
1
vote
1 answer

How can I let my DropdownButton affect my TextFormField

I think this is probably not too complicated, but I am new to coding and don't understand this, nor could I find an explanation online that I could understand. In my app my AppBar includes both a title and a bottom, the title has been just text, and…
1
vote
0 answers

How can i enable/disable the DropDownButton according to the condition in Flutter?

I am new in flutter and i am making leave application in that I have create two DropdownButton. In that one DropdownButton for From Date Half Leave: and Second one for To Date Half Leave. I am showing Same Item list in both DropdownButton. Problem…
1
vote
1 answer

How to use custom data types dropdownlist buttons in flutter?

I want to make drop-downlistbutton but its list should be elements of enum now I tried to change the type but it showed an error now I know I could do with strings and later on use if-else to do but obviously would make the code long so is there any…
Ashu
  • 97
  • 2
  • 11
1
vote
1 answer

Flutter DropdownMenuItem in separate widget file

I have an issue with refactoring my code of DropdownButton widget in Flutter. I have simple DropdownButton. DropdownButton( items: [ DropdownMenuItem( child: Container( child: Row( mainAxisAlignment:…
1
vote
0 answers

Flutter how to store selected values from the DropdownButton?

How could I make the selected item from the dropdownButton to store the current selected min and max value of the json in to minTip and maxTip. A small sample of my code below: String minTip; String maxTip; String _mySelection; List
dmichaud
  • 35
  • 5