Closes #1354

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-07 10:37:01 +08:00
parent 40e5e2f372
commit 44c7c44a27
4 changed files with 28 additions and 8 deletions

View File

@@ -701,7 +701,7 @@ class _RenderProgressBar extends RenderBox {
///
void _drawProgressBarWithoutLabels(Canvas canvas) {
final barWidth = size.width;
final barHeight = 2 * _thumbRadius;
final barHeight = _heightWhenNoLabels();
_drawProgressBar(canvas, Offset.zero, Size(barWidth, barHeight));
}
@@ -815,16 +815,16 @@ class _RenderProgressBar extends RenderBox {
void increaseAction() {
final newValue = _thumbValue + _semanticActionUnit;
_thumbValue = (newValue).clamp(0.0, 1.0);
onSeek?.call(_currentThumbDuration());
markNeedsPaint();
markNeedsSemanticsUpdate();
onSeek?.call(_currentThumbDuration());
}
void decreaseAction() {
final newValue = _thumbValue - _semanticActionUnit;
_thumbValue = (newValue).clamp(0.0, 1.0);
onSeek?.call(_currentThumbDuration());
markNeedsPaint();
markNeedsSemanticsUpdate();
onSeek?.call(_currentThumbDuration());
}
}