Skip to content

Commit

Permalink
feat: update animation
Browse files Browse the repository at this point in the history
  • Loading branch information
mthinh committed Oct 2, 2024
1 parent b95e187 commit 6fb20be
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ class CustomTimerPainter extends CustomPainter {
double progress = (animation!.value) * 2 * math.pi;
double startAngle = math.pi * 1.5;

// if ((!isReverse! && isReverseAnimation!) ||
// (isReverse! && isReverseAnimation!)) {
// progress = progress * -1;
// startAngle = -math.pi / 2;
// }
if ((!isReverse! && isReverseAnimation!) ||
(isReverse! && isReverseAnimation!)) {
progress = progress * -1;
startAngle = -math.pi / 2;
}

if (fillGradient != null) {
final rect = Rect.fromCircle(
Expand Down

0 comments on commit 6fb20be

Please sign in to comment.