Comments (5)
Hello @parkeradam ,
Thanks for reporting your issue.
To format the list of items, I'd recommend adapting the list of items you provide by changing the child
element of the DropdownMenuItem
objects.
For example:
...
items: Iterable<int>.generate(20).toList().map((i) {
return (DropdownMenuItem(
child: Text(i.toString(), style: yourStyle),
value: i.toString(),
));
}).toList(),
...
from searchable_dropdown.
Hi @lcuis , It's not the DropdownMenuItems that are the issue (those are already styled). It's the search bar text that cannot seem to be styled, as you can see, I have an 'f' in the search bar but it is very small in comparison to the DropdownMenuItems. I want to be able to increase the font size inside of the search bar.
Sorry for any confusion and thanks for helping out :)
from searchable_dropdown.
Hi @parkeradam ,
Sorry, I misunderstood. Thanks for the clarifications.
Indeed, this is a missing feature at the moment. Maybe this will come in the future?
In the meanwhile, maybe there could be a solution through the themes?
from searchable_dropdown.
Good morning I have the same problem. I'm not able to change the color of the text or the icon.
...
"Historical example": SearchableDropdown(
items: bankBRList.toList().map((value) {
return (DropdownMenuItem(
child: Text(value,
style: TextStyle(
color: Colors.white, //Cor da lista de bancos,
fontSize: 14.0,
)),
value: value,
));
}).toList(),
value: selectedValue,
hint: Text(false
? 'controllerBanco.text'
: 'banco'), //validaTexto ? controllerBanco.text : banco,
menuBackgroundColor: Colors.amber, //cor fundo da lista de banco
closeButton: null,
icon: Icon(Icons.keyboard_arrow_down),
iconEnabledColor: Colors.black, //cor icone,
searchHint: new Text(
'Selecione seu Banco',
style: new TextStyle(color: Colors.white, fontSize: 20),
),
onChanged: (value) {
setState(() {
selectedValue = value;
});
},
isExpanded: true,
),
...
from searchable_dropdown.
This issue is resolved in :- lcuis#35 <- Library here seems to be maintained, usae this instead.
from searchable_dropdown.
Related Issues (20)
- Selcted value is not changes if I give preselected value HOT 6
- Search is not working when i use value as Id inside onChanged
- How to get the selected value not index in multiple?
- Search is not working when, I use value as Id Int inside Value DropdownMenuItem HOT 1
- Provide async call to API on typing search HOT 1
- null safety HOT 1
- Clear the selected value programatically
- Is it possible to reduce the popup size like height , width after dropdown is opened HOT 1
- selectedItems how to get values in string instead of id in numbers HOT 1
- When dropdown is clicked, UI should not get expanded, the items should display like normal dropdown effect HOT 1
- By default selected initial value HOT 1
- Add the ability to put hints in dialog search
- Need support for search delay (debounce) HOT 4
- Remove default padding HOT 2
- In multiple select option is not working properly
- Failed to build iOS app
- Compilation failed Flutter 2.5.0 HOT 7
- The getter 'subhead' isn't defined for the class 'TextTheme' - Cannot Debug/Run Flutter App HOT 13
- Can you update library to version 2 with null safty? HOT 1
- error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from searchable_dropdown.