From b12f667990ba2c4841f5e83f5db902cb1ba2b5b3 Mon Sep 17 00:00:00 2001 From: Deep Gaurav Date: Sun, 9 Jun 2019 20:29:09 +0530 Subject: [PATCH] add 2 sec skip --- lib/main.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/main.dart b/lib/main.dart index 21c596f..9df00b6 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -231,7 +231,7 @@ class MyHomePageState extends State positionNotifier.addListener(() { if (totalLength.value > 0 && positionNotifier.value > 0 && - positionNotifier.value >= totalLength.value) { + totalLength.value-positionNotifier.value<=2) { next(); } });