-
Notifications
You must be signed in to change notification settings - Fork 775
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
Animation Issue With ColumnSeries When Scroll Screen After setState #68
Comments
Hi @sujalBandhara , Greetings from Syncfusion. We have analyzed your query and we couldn’t predict your exact scenario. So, kindly share with us your sample or the screenshot which replicates your scenario. This will be much helpful in further analysis and provide you the solution sooner. Thanks, |
Widget allUsageBarChart() List _getChartCurrentData() { @OverRide )
|
Hi @sujalBandhara , Thanks for the revert. We would like to let you know when a widget is rendered in the ListView widget, then if a widget moves out of the viewport and again comes into the viewport on scrolling, the widget will be reinitialized. This is the default behavior of ListView, so the chart gets animated on scrolling. If you wish not to animate, then you can render the chart using the SingleChildScrollView widget, using this on scrolling the widget will not get reinitialized. We have prepared a sample based on the above scenario and the sample can be found from the below link. Thanks, |
I got the same problem, and my solution is using a flutter plugin should_rebuild. With this plugin, chart only rebuilds when the data passed to it changes. Hope this will help you. |
Hi @sujalBandhara , Thanks for revert. We would like to let you know that when any widget rendered in the ListView, it will do the rebuild with reinitializing (InitState called every rebuild) its widgets when we scrolling. That’s why Chart widget also re-rendered with animate in order to overcome this issue we have prepared some workaround sample for you. In this sample, we have prevented the chart animate when scrolling. We have prepared a sample based on the above scenario and the sample can be found from the below link. Link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/sample-1845822077-1186357010.zip Note: We have prepared the sample just for your requirements. So based on your scenario, you can change the sample. Regards, |
Hi, I am using a StaggeredGridView with Gauges and the workarounds doesn´t work for me. Is there any other Idea? Btw, my error is
|
Hi @jkoenig134 , We have tried to reproduce the reported issue using the SfRadialGauge inside the StaggeredGridView widget. Unfortunately, we are unable to reproduce the issue. Could you kindly modify the below sample in order to reproduce the reported issue? Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/gauge_gridview1009360131.zip Regards, |
Hi @DeviArunaMurugan, thanks for your reply! |
@DeviArunaMurugan I tried to reproduce it in the last 30 minutes, didn´t get it. Then i switched back to my application to see the difference. And the error is gone. Seems like the app fixed itself. |
Hi @jkoenig134 , Thanks for the revert. We confirm your issue has been resolved and thus we are closing this issue. Thanks |
Hello,
I am facing reanimate animation issue when scrolling screen after setState in ColumnSeries chart. Is there any way to restrict the animation when user scroll the screen.
Note :: dataSource change dynamically on change of button selections.
The text was updated successfully, but these errors were encountered: