@@ -99,6 +99,8 @@ public fun SparkButton(
99
99
}
100
100
101
101
LaunchedEffect (buttonClicks) {
102
+ dotsRadiusProgress.snapTo(0.0f )
103
+
102
104
if (checked && buttonClicks > 0 ) {
103
105
launch {
104
106
contentScale.snapTo(0.0f )
@@ -117,8 +119,7 @@ public fun SparkButton(
117
119
launch {
118
120
dotsRadiusProgress.animateTo(
119
121
targetValue = 1.0f ,
120
- animationSpec =
121
- keyframes {
122
+ animationSpec = keyframes {
122
123
0f at 0 using FastOutSlowInEasing
123
124
0.9f at (750 / animationSpeed).toInt() using SlowOutFastInEasing
124
125
1.0f at (1000 / animationSpeed).toInt()
@@ -131,8 +132,7 @@ public fun SparkButton(
131
132
launch {
132
133
largeDotSizeProgress.animateTo(
133
134
targetValue = 0f ,
134
- animationSpec =
135
- keyframes {
135
+ animationSpec = keyframes {
136
136
0f at 0 using FastOutSlowInEasing
137
137
1f at (450 / animationSpeed).toInt()
138
138
1f at (650 / animationSpeed).toInt() using SlowOutFastInEasing
@@ -145,8 +145,7 @@ public fun SparkButton(
145
145
launch {
146
146
smallDotSizeProgress.animateTo(
147
147
targetValue = 0f ,
148
- animationSpec =
149
- keyframes {
148
+ animationSpec = keyframes {
150
149
0f at 0 using FastOutSlowInEasing
151
150
1f at (500 / animationSpeed).toInt() using SlowOutFastInEasing
152
151
0.0f at (1000 / animationSpeed).toInt()
0 commit comments