mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-05-08 13:40:48 +00:00
Fix UI bug
Fix playback time display exceeding max duration when skipping near video end
This commit is contained in:
parent
9b7fea1435
commit
711e5ea6ae
1 changed files with 5 additions and 1 deletions
|
|
@ -804,8 +804,12 @@ class CustomMaterialDesktopPositionIndicatorState
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final clampedPosition = (widget.delta ?? position).clamp(
|
||||
Duration.zero,
|
||||
duration,
|
||||
);
|
||||
return Text(
|
||||
'${(widget.delta ?? position).label(reference: duration)} / ${duration.label(reference: duration)}',
|
||||
'${clampedPosition.label(reference: duration)} / ${duration.label(reference: duration)}',
|
||||
style: const TextStyle(height: 1.0, fontSize: 12.0, color: Colors.white),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue