mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-14 21:24:02 +08:00
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user