fixed timeline flickering

This commit is contained in:
Vadim 2024-05-02 19:35:04 +02:00
parent cbb3c59220
commit 1c66a82270

View file

@ -131,15 +131,16 @@ class _TimelinePainter extends CustomPainter {
);
canvas.drawPath(
Path.combine(
PathOperation.union,
timelinePath,
smoothEdgesPath,
),
timelinePath,
Paint()..color = progressColor,
);
canvas.drawPath(
smoothEdgesPath,
Paint()..color = progressColor,
);
}
@override
bool shouldRepaint(_TimelinePainter oldDelegate) => true;
bool shouldRepaint(_TimelinePainter oldDelegate) => oldDelegate.progress != progress;
}