From c9e7fb98835a81fcf7fadb58d69553ff9c6016b6 Mon Sep 17 00:00:00 2001 From: Elham Rababah Date: Sun, 16 May 2021 11:26:26 +0300 Subject: [PATCH] small fix --- lib/widgets/auth/sms-popup.dart | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/widgets/auth/sms-popup.dart b/lib/widgets/auth/sms-popup.dart index 5f073eca..cf16a0f1 100644 --- a/lib/widgets/auth/sms-popup.dart +++ b/lib/widgets/auth/sms-popup.dart @@ -18,8 +18,6 @@ class SMSOTP { int remainingTime = 600; - Future timer; - SMSOTP( this.context, this.type, @@ -337,12 +335,11 @@ class SMSOTP { startTimer(setState) { this.remainingTime--; - print(isClosed); setState(() { displayTime = this.getSecondsAsDigitalClock(this.remainingTime); }); - timer = Future.delayed(Duration(seconds: 1), () { + Future.delayed(Duration(seconds: 1), () { if (this.remainingTime > 0) { if (isClosed == false) startTimer(setState); } else {