Closed t123yh closed 10 months ago
Because your dropdown is defined at the same level of the widget tree that we rebuild 60 times per second. The solution is that define the dropDown as a top-level widget separate it from the 60 times rebuild.
Take a look at this code: https://gist.github.com/imaNNeo/0b373eff097faf7a9a33e37ad1707fef
Describe the bug When the displayed page contains a line chart that's being constantly updated (like Line Chart Sample 10 in the example app), DropdownMenu entries become unclickable.
To Reproduce See this repo: https://github.com/t123yh/fl_chart/tree/main/example (official example with a little code added to demonstrate the bug)
Screenshots
Versions
which version of the Flutter are you using?
Issue reproducible on Android and macOS
which version of the FlChart are you using? master branch