fix(lyrics): slow instrumental dot pulse

This commit is contained in:
zarzet
2026-09-26 12:45:16 +07:00
parent 2d554998b1
commit 33f0811acd
2 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ class _LyricGapIndicatorState extends ConsumerState<LyricGapIndicator>
with SingleTickerProviderStateMixin {
late final _pulse = AnimationController(
vsync: this,
duration: const Duration(milliseconds: 1800),
duration: const Duration(milliseconds: 3600),
);
@override
+5 -4
View File
@@ -1288,17 +1288,18 @@ void main() {
final restingWidth = dotWidth();
final restingCenter = tester.getCenter(firstDot);
final rowSize = tester.getSize(find.byType(LyricGapIndicator));
await positionAt(6, playing: true);
await tester.pump(const Duration(milliseconds: 400));
// Leave enough intro time for the slower pulse to grow and shrink.
await positionAt(3, playing: true);
await tester.pump(const Duration(milliseconds: 800));
final filling = dotAlphas();
final growingWidth = dotWidth();
expect(growingWidth, greaterThan(restingWidth));
expectSynchronizedDots();
await tester.pump(const Duration(milliseconds: 350));
await tester.pump(const Duration(milliseconds: 700));
final peakWidth = dotWidth();
expect(peakWidth, greaterThan(growingWidth));
expectSynchronizedDots();
await tester.pump(const Duration(milliseconds: 750));
await tester.pump(const Duration(milliseconds: 1500));
expect(dotWidth(), lessThan(peakWidth));
expectSynchronizedDots();
expect(tester.getCenter(firstDot), restingCenter);