apgapg / pie_chart

Flutter Pie chart with animation
https://pub.dev/packages/pie_chart
MIT License
179 stars 85 forks source link

pie chart starts flickering after some time #94

Open raphaelbogner opened 1 year ago

raphaelbogner commented 1 year ago

I am using the pie chart in my flutter-tizen app. After some time (half an hour or so) the pie chart starts flickering randomly. And it gets more extreme as more time passes. I attached a GIF of the flickering in a relative low state. Is that a known issue of the pie chart? Or is that somehow a wrong implementation on my side? flickering_pie

apgapg commented 1 year ago

Are we sure data isnt changing?

raphaelbogner commented 1 year ago

Yeah for sure. The data is not changing. I already checked that.

Jim-Blair commented 7 months ago

Encountered the same issue

inhohwangg commented 3 months ago

With the RepaintBoundary widget, re-rendering only occurs when the widget tree in that area changes, so you don't have to redraw the entire screen, reducing flicker.

Set the animationDuration to 0

animationDuration: Duration(milliseconds: 0),

Simply wrap a PieChart widget with a RepaintBoundary

Try it