Fix lerp to eccentric circle. (#108743)

This commit is contained in:
Greg Spencer
2022-08-01 11:47:06 -07:00
committed by GitHub
parent 7f7854fb42
commit 430441142e
3 changed files with 9 additions and 2 deletions

View File

@@ -501,9 +501,9 @@ ShapeBorder? lerpBorder(StarBorder border, LerpTarget target, double t, {bool to
switch (target) {
case LerpTarget.circle:
if (to) {
return border.lerpTo(const CircleBorder(side: lerpToBorder), t);
return border.lerpTo(const CircleBorder(side: lerpToBorder, eccentricity: 0.5), t);
} else {
return border.lerpFrom(const CircleBorder(side: lerpToBorder), t);
return border.lerpFrom(const CircleBorder(side: lerpToBorder, eccentricity: 0.5), t);
}
case LerpTarget.roundedRect:
if (to) {