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( canvas.drawPath(
Path.combine( timelinePath,
PathOperation.union, Paint()..color = progressColor,
timelinePath, );
smoothEdgesPath,
), canvas.drawPath(
smoothEdgesPath,
Paint()..color = progressColor, Paint()..color = progressColor,
); );
} }
@override @override
bool shouldRepaint(_TimelinePainter oldDelegate) => true; bool shouldRepaint(_TimelinePainter oldDelegate) => oldDelegate.progress != progress;
} }