-
Notifications
You must be signed in to change notification settings - Fork 776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't setState on onTrackballPositionChanging #21
Comments
second this |
Hi @sandycurrie , We regret the delay. We can replicate the reported issue while setState is called in onTracballPositionChanging event. So, we have considered this as a bug at our end, we will fix this issue and publish it in our upcoming update. We appreciate your patience until then. We will let you know once we have published. Thanks, |
Hi @sandycurrie , Thanks for being patience. The reported issue has been fixed, now exception will not be thrown when setState is called in onTrackballPositionChanging event. To resolve the reported issue, kindly upgrade your packages from the below link. https://pub.dev/packages/syncfusion_flutter_charts Thanks, |
Hi, when using setState inside onTrackballPositionChanging, the trackball is visible anymore. I used your example which was posted here. This example worked fine, but when I simply added I updated the example to the most recent syncfusion version 18.3.48+1 |
Hi there, Just to chase on this issue as its holding up development on our end. We use trackball within our charts but also use I have tried to use select from provider to only listen to specific changes but the trackball still disappears. Additionally I am building the chart as part of a separate class but despite trying a huge amount as long as This is obviously less than ideal, is there another solution or a workaround for now? |
Hi @Jamesmallon1 , I am having the same problem, were you able to solve it? |
Any updates on this? Still having the same issue edit: |
Hi, I've been really enjoying working with this library. I have only come across one issue, when I try to use the onTrackballPositionChanging (or any other UI event handler), I get exceptions, because it doesn't like that I am trying to save the currently selected point to state with setState().
I've done some reading, and this is not recommended by the flutter team on: https://api.flutter.dev/flutter/widgets/CustomPaint-class.html
Is there any way that these UI event handlers like onTrackballPositionChanging could be called from somewhere else? otherwise, I don't even know what I could use these events for...
The text was updated successfully, but these errors were encountered: