105 questions
0
votes
1
answer
45
views
Flutter DropdownMenu doesn't update with user input in search field
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, ...
0
votes
0
answers
71
views
How to make a Dropdown button that has a tree structure
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 ...
0
votes
1
answer
121
views
How to Expand Dropdown Width to Full Screen and Open It Below the Button in Flutter?
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. ...
0
votes
0
answers
55
views
Unable to link DropdownButton to TextFormField in flutter using provider
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 ...
0
votes
0
answers
44
views
Why my second dropdown of multi level dropdown does not load data
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'...
0
votes
0
answers
55
views
How can create a TextFormField allowing users to input values via keyboard, also while tapping the suffixIcon reveals a dropdown menu for selection
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 ...
0
votes
1
answer
332
views
Dropdown Label Floating Behaviour
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 ...
0
votes
1
answer
89
views
How to edit dropdown items list to look like below
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';
...
3
votes
1
answer
237
views
The dropdown icon is not centered
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({
...
1
vote
0
answers
79
views
Remove dropdown item from dropdown once selected
I am implementing a DropDownButtonFormField() which contains a list of items.
final dropDownItems = repairIssues!
.map((e) => DropdownMenuItem<String>(
child: Text(
e,
...
0
votes
0
answers
70
views
Flutter- How to Get the Firebase Options Value in Text Instead Of the ID
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 ...
3
votes
1
answer
79
views
Dependable Dropdown in Flutter is throwing an error
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 ...
0
votes
1
answer
374
views
How to update a "Widget build(BuildContext context)" in flutter
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" ...
0
votes
1
answer
47
views
How to increase height for a DropdownButton in Flutter
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 ...
0
votes
2
answers
148
views
DropdownButton text style doesn't change
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: ...
1
vote
1
answer
3k
views
dropdown_search search text filed is not showing
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
...
1
vote
2
answers
226
views
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 ...
1
vote
1
answer
88
views
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/...
0
votes
1
answer
2k
views
flutter error: Either zero or 2 or more [DropdownMenuItem]s were detected with the same value
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 ...
2
votes
1
answer
2k
views
Flutter Dropdown Different Selected Item Style than Items
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 ...
0
votes
1
answer
86
views
Flutter DropdownButton - Custom title for selected value?
I using this model for my DropdownButtonFormField:
class MyItem {
final String fullName;
final String shortName;
}
This my UI code:
List<DropdownMenuItem<MyItem>> _getItems() {
...
0
votes
1
answer
81
views
Is there any way to show the unique value in Dropdownbutton list?
My code is :
Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
...
1
vote
2
answers
2k
views
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:
...
0
votes
1
answer
626
views
dropdown button in Drawer flutter
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';
...
0
votes
1
answer
2k
views
Flutter : DropdownButtonFormField2 selected item changes to initial value on screen rotation
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(...
1
vote
0
answers
61
views
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 ...
0
votes
1
answer
53
views
DropDown Selection Is Not Displaying In Flutter
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
...
0
votes
1
answer
338
views
Show dropdown boundary if focused
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 ...
1
vote
1
answer
41
views
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 ...
0
votes
1
answer
48
views
How to implement colours dropdown in flutter?
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.
0
votes
1
answer
296
views
How to add dropdown button in flutter using getx?
How to fix this error? Here is my data table.dart:
Widget build(BuildContext context) {
Controller controller = Get.put(Controller());
return Column(
children: [
SingleChildScrollView(
...
1
vote
3
answers
1k
views
How can I make dropdownbutton using Getx in flutter?
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<...
1
vote
1
answer
829
views
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 ...
0
votes
1
answer
396
views
In Flutter Desktop, DropDownButton is restricted to the window size. Can we let it overflow?
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. ...
0
votes
1
answer
712
views
Showing different forms based on dropdown selection in flutter
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 ...
0
votes
2
answers
1k
views
Flutter dropdown button selected value position
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'....
1
vote
4
answers
5k
views
How to reduce the height of the DropDownButtonFormField so that the text inside it does not go out of the middle in flutter?
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 ...
0
votes
2
answers
64
views
Flutter - DropdownButton not showing selected item
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 ...
2
votes
1
answer
2k
views
Flutter: disable DropdownButtonFormField option
I have this widget:
DropdownButtonFormField<String>(
hint: Text(translate('payments.select_frequency')),
value: frequency,
items: frequencies.map((String value) {
...
0
votes
2
answers
91
views
SetState doesn't do its job - Flutter
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 ...
1
vote
1
answer
570
views
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: ...
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
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"
},
{
...
0
votes
2
answers
184
views
Get user details from a dropdown list
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/...
0
votes
1
answer
2k
views
How to navigate to different pages through dropdown menu
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. ...
0
votes
1
answer
158
views
Either zero or 2 or more [DropdownMenuItem]s of DropDownButton2 widget were detected with the same value
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 ...
0
votes
1
answer
118
views
Either zero or 2 or more [DropdownMenuItem]s were detected with the same value in Flutter
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 ...
3
votes
0
answers
221
views
Update dropdown items with setstate on focus not working
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. ...
2
votes
0
answers
465
views
Dropdown Focus not changing
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 ...
2
votes
2
answers
3k
views
Flutter. How to implement editable text field with DropDownButton?
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 ...
0
votes
1
answer
380
views
I have created a custom DropDownButton with GetX in Flutter, it throws me error when i wrap with obx and if i remove obx i cannot select from the list
Custom DropDownButton
class CustomDropDown extends StatefulWidget {
PurchasePackageController purchasePackageController =
PurchasePackageController();
final String hintName;
final List<String> ...