anchor.diff: +import 'dart:math';
  +
   import 'package:flutter/material.dart';
   
   // Trimmed down version of https://github.com/ryanheise/just_audio/blob/master/just_audio/example/lib/common.dart
  
positive.code:             child: Slider(
                min: 0.0,
                max: widget.duration.inMilliseconds.toDouble(),
                value: widget.position.inMilliseconds.toDouble(),
                onChanged: (value) {
                  setState(() {
                    _dragValue = value;
  
negative.code:           child: Slider(
              min: 0.0,
              max: widget.duration.inMilliseconds.toDouble(),
              value:
                  min(_dragValue ?? widget.position.inMilliseconds.toDouble(), widget.duration.inMilliseconds.toDouble()),
              onChanged: (value) {
                setState(() {
                  _dragValue = value;
  