You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, isAnimationEnable has control of starting animation. That is good! But there is no possibility of controlling Donut and resizing of active slice strokeWidth. One solution would be to put it under the same property isAnimationEnable or introduce a new one, something like isStartAnimationEnabled and isDonutActiveSliceResizingEnabled
Code change would be within DrawPie.kt: style = if (isDonut) Stroke( width = if (isActive) (strokeWidth + 20f) else strokeWidth, ) else Fill,
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
At the moment, isAnimationEnable has control of starting animation. That is good! But there is no possibility of controlling Donut and resizing of active slice strokeWidth. One solution would be to put it under the same property
isAnimationEnable
or introduce a new one, something likeisStartAnimationEnabled
andisDonutActiveSliceResizingEnabled
Code change would be within DrawPie.kt:
style = if (isDonut) Stroke( width = if (isActive) (strokeWidth + 20f) else strokeWidth, ) else Fill,
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions