|
|
|
|
@ -4,6 +4,7 @@ import 'package:doctor_app_flutter/config/config.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/config/size_config.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/providers/auth_provider.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/providers/patients_provider.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/routes.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:hexcolor/hexcolor.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
@ -34,6 +35,8 @@ class _ShowTimerTextState extends State<ShowTimerText> {
|
|
|
|
|
setState(() {
|
|
|
|
|
sec = sec - 1;
|
|
|
|
|
if (sec == 0 && min == 0) {
|
|
|
|
|
Navigator.of(context).pushNamed(LOGIN);
|
|
|
|
|
|
|
|
|
|
min = 0;
|
|
|
|
|
sec = 0;
|
|
|
|
|
} else if (sec == 0) {
|
|
|
|
|
@ -72,11 +75,10 @@ class _ShowTimerTextState extends State<ShowTimerText> {
|
|
|
|
|
resendActivatioinCode();
|
|
|
|
|
},
|
|
|
|
|
child: Text(
|
|
|
|
|
min == 0 && sec == 0 ? 'Resend Login Code' : timerText,
|
|
|
|
|
timerText,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 3.0 * SizeConfig.textMultiplier,
|
|
|
|
|
color:
|
|
|
|
|
min == 0 && sec == 0 ? Colors.blue : Hexcolor('#B8382C'),
|
|
|
|
|
color: Hexcolor('#B8382C'),
|
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|