Commit cdc1d41
authored
Animate follow icon rotation in Jetcaster (#1603)
### Overview
This PR adds a small rotation animation to the "Follow" icon in the
Jetcaster app to improve visual feedback when toggling follow/unfollow.
This implements the TODO found in FollowButton.kt: `// TODO: think about
animating these icons`
### What Changed
- Added an `animateFloatAsState` to animate icon rotation from 0f to
360f when `isFollowed` changes
- Applied `Modifier.rotate()` to the Icon based on the animated value
### Why
This small UX enhancement helps to make the follow action feel more
responsive and polished visually for users.
### How it looks like (example screen recording)

Let me know if any adjustments are needed. 🙂File tree
1 file changed
+25
-1
lines changed- Jetcaster/mobile/src/main/java/com/example/jetcaster/util
1 file changed
+25
-1
lines changedLines changed: 25 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
| 32 | + | |
28 | 33 | | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
52 | 58 | | |
53 | 59 | | |
54 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
55 | 78 | | |
56 | | - | |
| 79 | + | |
57 | 80 | | |
58 | 81 | | |
59 | 82 | | |
| |||
62 | 85 | | |
63 | 86 | | |
64 | 87 | | |
| 88 | + | |
65 | 89 | | |
66 | 90 | | |
67 | 91 | | |
0 commit comments