pie_chart icon indicating copy to clipboard operation
pie_chart copied to clipboard

Automatic Repaint on Hero

Open riccardocescon opened this issue 2 years ago • 3 comments

I wrapped the PieChart with a Hero widget in order to animate that between two pages. When a switch to the second page the PieChart gets repainted. I think the widget is painting as soon as the page loads, and the hero widget overrides that animation, and then you obtain that weird laggy effect

riccardocescon avatar Dec 17 '22 11:12 riccardocescon

you can delay the animation start. I think we have a parameter for that

apgapg avatar Dec 19 '22 04:12 apgapg

PieChart widget has only the animationDuration parameter for handling the 'animation'. I tried setting some values, but even with 8 seconds you can still see that repaint happening. I event tried to wrap with RepaintBoundary but still happens

riccardocescon avatar Dec 19 '22 08:12 riccardocescon

@apgapg Is there any news on this pie with hero widget?

riccardocescon avatar Jan 13 '23 12:01 riccardocescon