mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-25 00:40:39 +00:00
fixed timeline flickering
This commit is contained in:
parent
cbb3c59220
commit
1c66a82270
1 changed files with 7 additions and 6 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue