GithubHelp home page GithubHelp logo

Comments (8)

wkolov avatar wkolov commented on July 18, 2024 1

I have tried it and the performance looks very good now. Thanks.

from dropdown_button2.

wkolov avatar wkolov commented on July 18, 2024

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.

AhmedLSayed9 avatar AhmedLSayed9 commented on July 18, 2024

Sorry for the late response.
I'll check it this weekend and see if there's something we can do.

from dropdown_button2.

AhmedLSayed9 avatar AhmedLSayed9 commented on July 18, 2024

@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.

wkolov avatar wkolov commented on July 18, 2024

@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 avatar AhmedLSayed9 commented on July 18, 2024

@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.

AhmedLSayed9 avatar AhmedLSayed9 commented on July 18, 2024

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.

AhmedLSayed9 avatar AhmedLSayed9 commented on July 18, 2024

3.0.0-beta.14 is released, give it a try :)

from dropdown_button2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.