From 1c66a82270c4eb0129206e3d9adf0a3323e9ef44 Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Thu, 2 May 2024 19:35:04 +0200 Subject: [PATCH] fixed timeline flickering --- .../components/timeline/widget_timeline_timer.dart | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/screens/timer/components/timeline/widget_timeline_timer.dart b/lib/screens/timer/components/timeline/widget_timeline_timer.dart index 481f87d..71c43f5 100644 --- a/lib/screens/timer/components/timeline/widget_timeline_timer.dart +++ b/lib/screens/timer/components/timeline/widget_timeline_timer.dart @@ -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; }