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
The new StarBorder has a genius 2-3 step lerp for most shapes, except Circle, where it works well except when eccentricity != 0. I think it was forgotten in the implementation, as Oval is only a few weeks old. I propose adding the 2-way lerp to circle, so oval works. cc @gspencergoog
Related: in the upcoming BoderSide.only PR, which may or may not be accepted, Star -> Circle is the only lerp that doesn't work, as it draws a path all the time. The other shapes draw a path until 50%, then their shape until 100%, so lerp is good (not great, might need a few fixes). I see two potential solutions:
Add 2 step lerp for Oval (and eccentricity != 0).
Add 2 step lerp for all circles.
If you fix oval only, in a hypothetical future, we might need to do if (multiBorder) 2-step lerp for circle, which is also fine. Just telling you the plan.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
maheshj01 commentedon Aug 1, 2022
Hi @bernaferrari, Thanks for filing the issue. Can you please share a code sample or confirm if this code sample is right?
bernaferrari commentedon Aug 1, 2022
I knew by the time I went to answer this, there would be a PR already. Nice work @gspencergoog! lol
bernaferrari commentedon Aug 1, 2022
Yes, seems like a great sample @maheshmnj. Thanks!
github-actions commentedon Aug 16, 2022
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.