Questions tagged [flutter-dropdownbutton]

94 questions
2
votes
1 answer

How to create submenu dropdown in flutter

I am working on sidebar in flutter, I need to add a submenu to the alreay existing menu Items. I have two files, menu_items.dart and sidebar.dart. Menu_Items codes: import 'package:flutter/material.dart'; class MenuItem extends StatelessWidget { …
isofttechn
  • 400
  • 1
  • 6
  • 19
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

Flutter: Future list to be displayed in DropDownFormField

I want to display send a request to API, to get data, display this data in a Form. Here is the code that I have. import 'dart:io'; import 'package:flutter/material.dart'; import 'package:sample/models/item.model.dart'; import…
1
vote
2 answers

Change a dropdown's items when another dropdown's value is chosen in flutter (UI wont update)

I have two drop downs, and I want to do things when they get values selected. One of those is to change the second buttondrop items based on what's selected in the first dropdown. For example: Dropdown1 is a list of car manufactuers Dropdown2 is a…
1
vote
0 answers

Flutter Dropdown - different Widgets/Design for Item List and selected Item

I need a DropDown where the items in the list have more information than shown in the view of the selected element. For example: I have a DropDown based of a List that includes an object that has two properties. class MyElement { String infoA; …
F.M.
  • 630
  • 1
  • 5
  • 18
1
vote
1 answer

Check if selectedEndHour is more than selectedStartHour

This is my dropdownlist for start time. I wanted to validate the dropdownlist under the condition that if the user chooses the end hour less than the start date, it will show an error. What are the steps in implementing that? Flexible( child:…
wuuyungwuu
  • 83
  • 13
1
vote
1 answer

How to add suffix icon only to the DropdownMenuItem in the DropdownButtonFormField?

I am trying to add Icons.close to each item in the DropdownMenuItem. When the icon is pressed the item will be removed from the list. But the problem is, The icon is also showing in the Dropdown button value. I only want the string to be shown in…
1
vote
1 answer

Flutter: disable DropdownButtonFormField option

I have this widget: DropdownButtonFormField( hint: Text(translate('payments.select_frequency')), value: frequency, items: frequencies.map((String value) { return DropdownMenuItem( value:…
Dani
  • 3,128
  • 2
  • 43
  • 91
1
vote
1 answer

how can i get my category name when value type is id in dropdown flutter

i am trying to show category name and store category id in database but my categories id are not line by line My Dropdown button DropdownButton( items: categoriesList.map((item) { …
1
vote
0 answers

Flutter Multiple Select dropdown list

i try to crate flutter multiple select dropdown list, i try flutter plugin multiselect, but my design not similar,how to solve this problem, i shared my code, how to get same design with multiple select drop down list. i used…
1
vote
1 answer

Placing dropdownbutton selections into a to-do list

I am very new to Flutter/Dart, so please forgive my ignorance and please explain everything to me like I am a five year old. I have a screen on my app where I would like users to have two options: enter text using a textfield or select an option…
Matt Orr
  • 109
  • 5
1
vote
1 answer

I want to create a custom DropdownButton in flutter which can be reusable with different List [Flutter]

Here I have four Lists as in the code below and is it possible to call the list through parameter od any someother way for reusable purpose, example if I have four DropDown Button and each DropDown Button contains different Lists so how i can create…
Nishu
  • 33
  • 1
  • 7
1
vote
1 answer

Flutter how to user hint and value DropdownButton

While coding an app i realized, that if you use a hint: with the DropdownButton and a value you only see the value. After some research and trying to work my way around it i finally found a solution. Idk if this is helpful or not but i wanted to…
bayrixx
  • 47
  • 8
1
vote
1 answer

In Flutter, I am making a bible app using a json file of the format shown bellow... I want you to help me with the Drop Down selection

I want a dependent dropdown selection for The Book Name (Independent) The Chapter (Dependent) The Verse (Dependent) I Want the Dropdown to be in this format First, Independent Dropdown Select using the name Second, Dependent Dropdown indexes of…
1
vote
1 answer

In Flutter, I am trying to make a dependent dropdown with the following json

In Flutter, I am trying to make a dependent dropdown with the following json. I Want the Dropdown to be in this format First, Independent Dropdown dataNames Second, Dependent Dropdown indexes of the dataSets' children Third, Dependent…
Joel Lee
  • 21
  • 3