Laiq37 / easy_pie_chart

The Easy Pie Chart package provides a versatile pie chart widget for Flutter applications. It offers various customization options to create interactive and visually appealing pie charts.
MIT License
3 stars 7 forks source link

pie chart turns to 5 degrees on focus #1

Open raphaelbogner opened 1 year ago

raphaelbogner commented 1 year ago

I have a grid with focusable containers, in one of them I use this pie chart package. I attached two images with 0 degrees start position and a picture that shows the pie chart after I focused the Container with it inside. As said in the title, when I focus the Container with the pie chart it turns to about 5 degrees. It does not change anything if the pie chart has a start position of 0 or 90 or anything else, it always turns to around 5 degrees.

pie_5_degrees pie_0_degrees

Laiq37 commented 1 year ago

Hi, Could you please share the relevant code files to assist in resolving this issue more effectively?

faaqi commented 11 months ago

@Laiq37 @raphaelbogner

I found this bug as well and in my case, I've the Pie chart inside a sheet. When I drag sheet, the pie chart goes to 7 degree angle.

When I assigned the startAngle = 7 , then pie chart remains stable on closing or playing with sheet. Otherwise, for all other angles, when I close the sheet, the pie chart goes to 7 degree angle always.

I'm using the Pie chart inside this sheet : sliding_panel

https://github.com/Laiq37/easy_pie_chart/assets/61233208/d1c77d7c-65ee-4890-ad52-a5287d905da8

faaqi commented 11 months ago

Resolved this issue by using another variable for start angle and retaining the initial start angle of pie chart.

Use the new variable at all other places in this clss.

@Laiq37 @raphaelbogner

image

Laiq37 commented 11 months ago

Thank you for sharing your solution! I'm glad to hear that it resolved the issue for you. I'll work on fixing this globally. Could you provide more details on how you're using the widget with the sliding_panel package? This information will be valuable in reproducing and addressing the problem effectively. Your feedback is much appreciated!

byjoker8625 commented 4 months ago

Anything new with this? Im still experiencing the same bug. I would really appreciate if this could get fixed in the lib.