Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
Filter by
Sorted by
Tagged with
0 votes
1 answer
45 views

Problem: I'm using DropdownMenu in Flutter with enableSearch: true, and I want to filter the dropdown options based on the user's input in the search field. However, when I type, the keyboard appears, ...
Metok's user avatar
  • 1
0 votes
0 answers
71 views

Is it possible to make something like this with DropdownButton (or any other Flutter widget)? By "Tree Structure" I mean that certain values of the list of selection when clicked, do not ...
Augusto Carmo's user avatar
0 votes
1 answer
121 views

Question: I'm trying to create a DropdownButton in Flutter that expands to take up the full width of the screen when clicked, but currently, it only expands based on the width of the button. ...
stysh's user avatar
  • 13
0 votes
0 answers
55 views

Problem: I'm trying to link the value of a dropdown to a text field in Flutter. I'm using Provider for state management. The value from the dropdown updates the state correctly, but the text field is ...
Nk C's user avatar
  • 1
0 votes
0 answers
44 views

I'm a little new to flutter. I have two DropdownButtons. The second depends on the selection of the first. The data of the first I retrieve from the database. It poses no problem. Mais le second n'...
leauradmin's user avatar
0 votes
0 answers
55 views

I want to make a DropdownTextField where the user can choose either keyboard or dropdown to input value in the field. I want to achieve a TextFormField where the user can give input value with the ...
Hafizur Rahman's user avatar
0 votes
1 answer
332 views

I've implemented a custom dropdown widget in my Flutter project, but I'm encountering an issue with the display of the dropdown label when the widget is used. Here's the code snippet for my custom ...
a a's user avatar
  • 37
0 votes
1 answer
89 views

I've implemented a custom dropdown widget in my Flutter project, but I'm encountering an issue with the display of the dropdown items when the widget is used. import 'package:flutter/material.dart'; ...
a a's user avatar
  • 37
3 votes
1 answer
237 views

I have created the dropdown widget below to customize when I'm using import 'package:flutter/material.dart'; import 'package:universalteam/Components/AppColors.dart'; Widget CustomDropdown({ ...
a a's user avatar
  • 37
1 vote
0 answers
79 views

I am implementing a DropDownButtonFormField() which contains a list of items. final dropDownItems = repairIssues! .map((e) => DropdownMenuItem<String>( child: Text( e, ...
Mahendra's user avatar
  • 8,962
0 votes
0 answers
70 views

I trying to select the options value that retrieved from Firebase (A1) but why the hint value that displayed in text field is along with the text value of the option that selected instead of change ...
I Can Done's user avatar
3 votes
1 answer
79 views

I have three Dropdowns, each dependent on the previous one. I was able to load data onto the second Dropdown based on the value selected in the First Dropdown. When I select the Second Dropdown, the ...
sulli110's user avatar
  • 347
0 votes
1 answer
374 views

I am kind of stuck with flutter code here. I'm using 2 dropdown_button2's for choosing destinations which are going alright, but I added a separated class for a "switch destination button" ...
Fluttl's user avatar
  • 1
0 votes
1 answer
47 views

I do have a DropdownButton and all I want is to increase the height of it just a little bit to be able to see minimum 2 lines of text when the user select an option from the list. I already tried with ...
Florentin Lupascu's user avatar
0 votes
2 answers
148 views

I'm trying to use Montserrat with a custom color on my DropdownButton but for some reason, the TextStyle is not being applied. Here is my code: DropdownButton( value: value, dropdownColor: ...
Rafael_O's user avatar
1 vote
1 answer
3k views

i ma trying to add searchable drop down box for my flutter application but when i add code from package example it's not showing the text filed for enter the values that i need to search ? FYI ...
Thalinda Bandara's user avatar
1 vote
2 answers
226 views

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 ...
Baran Güngör's user avatar
1 vote
1 answer
88 views

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/...
Rohith Poyyeri's user avatar
0 votes
1 answer
2k views

I am using two dropdowns. My dropdowns will be work alternate, We select city from first dropdown after selecting city I will get outlets then I will show outlets. For the first time its working fine ...
Deepak's user avatar
  • 2,364
2 votes
1 answer
2k views

I am developping an UI for the user to change the app language. When showing the currently selected language I want to only display the flag with a dropdown icon. When the user clicks on the dropdown ...
Patrick Michiels's user avatar
0 votes
1 answer
86 views

I using this model for my DropdownButtonFormField: class MyItem { final String fullName; final String shortName; } This my UI code: List<DropdownMenuItem<MyItem>> _getItems() { ...
FetFrumos's user avatar
  • 6,115
0 votes
1 answer
81 views

My code is : Column( mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start, children: [ ...
Mehedi Hasan Sumon's user avatar
1 vote
2 answers
2k views

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: ...
TheCoolest2's user avatar
0 votes
1 answer
626 views

I try to add dropdown button in drawer header but I face issue dropdown button this is my code import 'package:flutter/material.dart'; import 'package:test/Screens/change_password_screen.dart'; ...
sarah's user avatar
  • 13
0 votes
1 answer
2k views

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(...
KJEjava48's user avatar
  • 2,073
1 vote
0 answers
61 views

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 ...
F.M.'s user avatar
  • 768
0 votes
1 answer
53 views

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 ...
faiz's user avatar
  • 13
0 votes
1 answer
338 views

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 ...
Alok Kumar's user avatar
1 vote
1 answer
41 views

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 ...
wuuyungwuu's user avatar
0 votes
1 answer
48 views

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's user avatar
  • 19
0 votes
1 answer
296 views

How to fix this error? Here is my data table.dart: Widget build(BuildContext context) { Controller controller = Get.put(Controller()); return Column( children: [ SingleChildScrollView( ...
Muhammad Awais's user avatar
1 vote
3 answers
1k views

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<...
yunju's user avatar
  • 33
1 vote
1 answer
829 views

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 ...
Senthur Kumaran's user avatar
0 votes
1 answer
396 views

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. ...
Vikas's user avatar
  • 896
0 votes
1 answer
712 views

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 ...
J Moss's user avatar
  • 3
0 votes
2 answers
1k views

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'....
Gryva's user avatar
  • 327
1 vote
4 answers
5k views

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 ...
seyyed javad's user avatar
0 votes
2 answers
64 views

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 ...
Johan Scheepers's user avatar
2 votes
1 answer
2k views

I have this widget: DropdownButtonFormField<String>( hint: Text(translate('payments.select_frequency')), value: frequency, items: frequencies.map((String value) { ...
Dani's user avatar
  • 4,264
0 votes
2 answers
91 views

When my DropdownButton updates the value it contains, it does so with it, the setState updates the highlight text of my button. But the same variable "ms" that is updated inside the button ...
Jonathan's user avatar
  • 164
1 vote
1 answer
570 views

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: ...
Ishant Singh's user avatar
0 votes
0 answers
126 views

if I have 100k data in json and I want to use it in multiselect in flutter app how would I do using search only? [ { "id": 16905, "name": "5-HTP" }, { ...
Shadman Nehal Khan's user avatar
0 votes
2 answers
184 views

I have a dropdown list populated with users, I want to get the user id and pass to a function whenever a user is selected from the list An unhandled exception is occurring instead the exception E/...
bello's user avatar
  • 9
0 votes
1 answer
2k views

When clicked on the menu item, I want it to redirect to a different page. For example, if I am clicking on 'First', it should redirect to a separate page and similarly for all other items in the list. ...
mentos's user avatar
  • 41
0 votes
1 answer
158 views

I am using DropDownButtonHideUnderline widget And I manage the state of this widget with getx I think the problem is because of the value property value of the DropdownButton2 widget Can anyone help ...
peyman bozorgnezhad's user avatar
0 votes
1 answer
118 views

I am using DropDownButtonHideUnderline widget And I manage the state of this widget with getx I think the problem is because of the value property value of the DropdownButton2 widget Can anyone help ...
peyman's user avatar
  • 1
3 votes
0 answers
221 views

I want to update dropdown items with setState when data received from api. Dropdown items not update even though widget is rebuilt. I can only get updated dropdown items after unfocus and focus. ...
Tin Ko Ko Win's user avatar
2 votes
0 answers
465 views

I am using flutter for web. When I click on the dropdown but do not select any options, then when I click outside the dropdown menu, the focus is still there. But I have used Gesture Detector to ...
Asif Syeed's user avatar
2 votes
2 answers
3k views

I am trying to implement a TextField with DropDown menu, just like DropdownButtonFormField but with ability to edit it like ordinary text field. So user have options to fill the field by hand or to ...
Parafin's user avatar
  • 119
0 votes
1 answer
380 views

Custom DropDownButton class CustomDropDown extends StatefulWidget { PurchasePackageController purchasePackageController = PurchasePackageController(); final String hintName; final List<String> ...
Nishu's user avatar
  • 43