title: How to make music slider, start time and end time?
body: <p>I want to make music slider like this:
  <a href="https://i.stack.imgur.com/YRX3c.jpg" rel="nofollow noreferrer">slider image</a>
  I am new to dart so please forgive any mistakes in the question.
  I am just confused on how to set the time elapsed playing and total time.</p>
  <p>my code:</p>
  <pre><code>double sliderValue = 0;
    Duration max = const Duration(seconds: 120);
  
  Row(
              children: [
                Text('${sliderValue.toInt()}'),
                Slider(
                    value: sliderValue,
                    min: 0,
                    max: max.inSeconds.toDouble(),
                    onChanged: (double value){
                      setState(() {
                        sliderValue = value;
                      });
                    }
                ),
                Text('${max.inMinutes}')
              ],
            ),
  </code></pre>