small fix

auth_refactor
Elham Rababah 5 years ago
parent 1eeaaa48ca
commit c9e7fb9883

@ -18,8 +18,6 @@ class SMSOTP {
int remainingTime = 600; int remainingTime = 600;
Future<Null> timer;
SMSOTP( SMSOTP(
this.context, this.context,
this.type, this.type,
@ -337,12 +335,11 @@ class SMSOTP {
startTimer(setState) { startTimer(setState) {
this.remainingTime--; this.remainingTime--;
print(isClosed);
setState(() { setState(() {
displayTime = this.getSecondsAsDigitalClock(this.remainingTime); displayTime = this.getSecondsAsDigitalClock(this.remainingTime);
}); });
timer = Future.delayed(Duration(seconds: 1), () { Future.delayed(Duration(seconds: 1), () {
if (this.remainingTime > 0) { if (this.remainingTime > 0) {
if (isClosed == false) startTimer(setState); if (isClosed == false) startTimer(setState);
} else { } else {

Loading…
Cancel
Save