Comments (8)
I have tried it and the performance looks very good now. Thanks.
from dropdown_button2.
Are there any news regarding this issue? It's actually a serious problem since meanwhile we have up to 5000 entries in the drop-down list and customers complain loudly about miserable performance. It seams to be an issue in browsers (tested with Chrome and Safari). The performance in mobile apps is much better even with large lists.
from dropdown_button2.
Sorry for the late response.
I'll check it this weekend and see if there's something we can do.
from dropdown_button2.
@wkolov Do you experience a delay if the selected item is at the beginning of the list or only in case it's far from start?
I was able to re-produce it using flutter's DropdownButton
too.
from dropdown_button2.
@AhmedLSayed9 This gets worse the further it gets from the beginning. DropdownButton is affected too, but it's not that slow (I measured 10 vs 17 seconds in my test setup). The issue is somewhat hard to catch. It seems to depend on the amount of free memory in the system and all the profiling tools I tried to use don't show anything helpful or even crash. I have found another searchable dropdown: https://pub.dev/packages/dropdown_search. It doesn't scroll to the selected item when the drop-down list opens and thus it is always quick.
from dropdown_button2.
@AhmedLSayed9 This gets worse the further it gets from the beginning. DropdownButton is affected too, but it's not that slow (I measured 10 vs 17 seconds in my test setup). The issue is somewhat hard to catch. It seems to depend on the amount of free memory in the system and all the profiling tools I tried to use don't show anything helpful or even crash. I have found another searchable dropdown: https://pub.dev/packages/dropdown_search. It doesn't scroll to the selected item when the drop-down list opens and thus it is always quick.
Well, the issue is scrolling over a very big list without specifying itemExtent causes janky performance.
We need to somehow set itemExtent
, I'll look into it.
from dropdown_button2.
A fix is incoming. You'll be able to scroll fast even with different items length & separators:
Screen.Recording.2024-05-16.at.3.51.34.AM.mov
Note: the min supported flutter version will be increased to 3.16.0
and you'll have to not use intrinsicHeight: true
of DropdownItem "which is false by default".
from dropdown_button2.
3.0.0-beta.14
is released, give it a try :)
from dropdown_button2.
Related Issues (20)
- Cannot simultaneously update items and values in beta HOT 2
- The splash effect goes above the error / validation text
- Close programatically on Escape pressed HOT 4
- How can i create menu items with exactly height for each element
- Not possible to have label, text and dropdown values all aligned with OutlineInputBorder HOT 2
- Show selected item when page initialized HOT 6
- onChanged doesn't work when using multiValueListenable HOT 2
- DropdownButtonFormField2 initial value
- barrierCoversButton: false property not working
- Not resetting the search querry before reopening the menu breaks the dropdown menu scroll position calculation algorithm
- The package interferes with TextField HOT 1
- Being able to set the errorText
- Ink splashes get displayed over search widget HOT 2
- Disable focus on DropdownItem HOT 4
- How to wrap TapRegion with groupID around DropdownButtonFormField2 to track TapInside / TapOutside with other TapRegions
- Add an ability to override comparator function HOT 8
- The border does not change to red on validation error HOT 5
- On mobile once keyboard open it's pushing the dropdown to top HOT 6
- Use onMenuStateChange & FocusNode for TextField not working
- How to change disabled style?
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.