pie_chart icon indicating copy to clipboard operation
pie_chart copied to clipboard

pie chart starts flickering after some time

Open raphaelbogner opened this issue 2 years ago • 4 comments

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

raphaelbogner avatar Mar 17 '23 08:03 raphaelbogner

Are we sure data isnt changing?

apgapg avatar Mar 19 '23 16:03 apgapg

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

raphaelbogner avatar Mar 19 '23 17:03 raphaelbogner

Encountered the same issue

Jim-Blair avatar Mar 05 '24 08:03 Jim-Blair

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

inhohwangg avatar Jul 24 '24 08:07 inhohwangg