Comments (3)
Hi @yh4922 ,
When there is no default value, there shouldn't be any items selected as showing in the example samples.
Can you share a sample code when this issue happen?
from dropdown_button2.
Hi @yh4922 , When there is no default value, there shouldn't be any items selected as showing in the example samples. Can you share a sample code when this issue happen?
This is the example project of this library, I have not done any task modification
from dropdown_button2.
Well, Selected Item is only highlighted on web and desktop (when [FocusManager.highlightMode]
is [FocusHighlightMode.traditional]
). That's why I couldn't see this behavior on mobile.
so, in that case, First item is considered as the selected index to handle menu animation, position, etc.. "That's Flutter Dropdownbutton behavior".
All we need is to exclude first item to be highlighted when there's no default value.
Also, I noticed the button's color gets highlighted on web and desktop if buttonDecoration
is set. I'll work to fix that too.
from dropdown_button2.
Related Issues (20)
- Text to big and overflowing HOT 7
- How to align label and content while still having a left padding HOT 6
- Unnecessary Roboto-Regular font is included in the release app since v2.3.1 HOT 1
- Make the dropdown width depends on the max width of the menu item HOT 1
- Programmatically open the dropdown menu on double tap event
- Adding vertical padding to MenuItemStyleData causes menuHeights wrong calculations and eventually menu disappears
- selected text color
- reduce button height HOT 1
- [Question] DropdownMenuItem -on mouse over, change my child widget style
- Custom Button Tabbing fails with assertion HOT 5
- Unsupported operation: Cannot modify an unmodifiable list HOT 3
- Border Radius on DropdownMenuItem HOT 2
- Search is not working HOT 1
- Empty search text should return a list of items without checking whether they satisfy search term
- How to stretch the tap target to fill the entire button HOT 5
- i don't want to show selected item in list of dropdown. HOT 2
- i don't want to show selected item in list of dropdown. HOT 7
- IndexedStack + 10k items = horrible perfomance HOT 9
- Hover effect goes beyond DropdownButtonFormField2. Regression in 2.2.0. HOT 1
- DropdownButtonFormField2 hover effect over hint and error
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 dropdown_button2.