Skip to content

Commit

Permalink
0.0 and 1.0 have been assigned as default values
Browse files Browse the repository at this point in the history
  • Loading branch information
DomingoMG committed Apr 30, 2021
1 parent 13991e1 commit ad84c2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ class _DartVLCState extends State<DartVLC> {
),
Slider(
min: 0,
max: this.position.duration.inMilliseconds.toDouble(),
value: this.position.position.inMilliseconds.toDouble(),
max: this.position.duration?.inMilliseconds.toDouble() ?? 1.0,
value: this.position.position?.inMilliseconds.toDouble() ?? 0.0,
onChanged: (double position) =>
this.player?.seek(
Duration(milliseconds: position.toInt())
Expand Down

0 comments on commit ad84c2f

Please sign in to comment.