Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-06 14:14:19 +08:00
parent 1a8c348af1
commit 07843a5e77
239 changed files with 3175 additions and 13237 deletions

View File

@@ -739,13 +739,14 @@ class RenderProgressBar extends RenderBox implements MouseTrackerAnnotation {
}) {
final baseBarPaint = Paint()
..color = color
..strokeCap = StrokeCap.round
..strokeCap = .square
..strokeWidth = _barHeight;
final capRadius = _barHeight / 2;
final adjustedWidth = availableSize.width - barHeight;
final dx = widthProportion * adjustedWidth + capRadius;
final startPoint = Offset(capRadius, availableSize.height / 2);
final endPoint = Offset(dx, availableSize.height / 2);
final dy = availableSize.height / 2;
final startPoint = Offset(capRadius, dy);
final endPoint = Offset(dx, dy);
canvas.drawLine(startPoint, endPoint, baseBarPaint);
}