fix(lyrics): pulse instrumental dots in unison

This commit is contained in:
zarzet committed 2026-09-26 04:10:00 +07:00
1 parent 0aaef057cd
commit 5aad892882
2 files changed
+17 -9

No files matched your search

+3 -7
View File
@@ -71,13 +71,9 @@ class _LyricGapIndicatorState extends ConsumerState<LyricGapIndicator>
AnimatedBuilder(
animation: _pulse,
builder: (context, child) {
// Stagger the breath without changing the row's layout or
// letting the pulse advance the playback-driven fill.
final phase = ((_pulse.value - index * 0.12) / 0.76).clamp(
0.0,
1.0,
);
final breath = math.sin(math.pi * phase);
// All three dots breathe together; only their fill advances
// independently with the playback position.
final breath = math.sin(math.pi * _pulse.value);
return Transform.scale(
scale: reduceMotion || widget.position != null
? 1