fix(lyrics): slow instrumental dot pulse

This commit is contained in:
zarzet committed 2026-09-26 12:45:16 +07:00
1 parent 2d554998b1
commit 33f0811acd
2 files changed
+6 -5

No files matched your search

+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);