Skip to content

Commit 97f191e

Browse files
author
Illia Romanenko
committed
fix example when it takes a long time initialize duration
1 parent 6bfec8c commit 97f191e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class MyAppScaffoldState extends State<MyAppScaffold> {
176176
value: sliderValue,
177177
min: 0.0,
178178
max: _videoViewController.duration == null
179-
? 1.0
179+
? (sliderValue + 1)
180180
: _videoViewController.duration.inSeconds
181181
.toDouble(),
182182
onChanged: (progress) {

0 commit comments

Comments
 (0)