7/1/1
This commit is contained in:
@@ -17,6 +17,7 @@ import 'package:SEFER/views/auth/captin/verify_email_captain.dart';
|
||||
import 'package:SEFER/views/home/Captin/home_captain/home_captin.dart';
|
||||
import 'package:location/location.dart';
|
||||
|
||||
import '../../../views/auth/captin/cards/egypt_card_a_i.dart';
|
||||
import '../../firebase/firbase_messge.dart';
|
||||
|
||||
class LoginDriverController extends GetxController {
|
||||
@@ -58,7 +59,12 @@ class LoginDriverController extends GetxController {
|
||||
});
|
||||
if (res == 'Failure') {
|
||||
//Failure
|
||||
Get.offAll(() => SmsSignupEgypt());
|
||||
if (box.read(BoxName.phoneVerified) == '1') {
|
||||
Get.offAll(() => EgyptCardAI());
|
||||
} else {
|
||||
Get.offAll(() => SmsSignupEgypt());
|
||||
}
|
||||
|
||||
isloading = false;
|
||||
update();
|
||||
// Get.snackbar('Failure', '', backgroundColor: Colors.red);
|
||||
|
||||
Reference in New Issue
Block a user