5/19/1
This commit is contained in:
@@ -1,15 +1,12 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:SEFER/controller/functions/gemeni.dart';
|
||||
import 'package:SEFER/views/auth/captin/register_captin.dart';
|
||||
import 'package:SEFER/views/auth/captin/cards/sms_signup.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:SEFER/views/auth/login_page.dart';
|
||||
|
||||
import '../../constant/box_name.dart';
|
||||
import '../../main.dart';
|
||||
import '../../onbording_page.dart';
|
||||
import '../../views/auth/captin/cards_egypt/sms_signup.dart';
|
||||
import '../../views/auth/captin/login_captin.dart';
|
||||
import '../../views/home/Captin/home_captain/home_captin.dart';
|
||||
|
||||
@@ -50,9 +47,12 @@ class SplashScreenController extends GetxController
|
||||
Timer(const Duration(seconds: 5), () {
|
||||
box.read(BoxName.onBoarding) == null
|
||||
? Get.off(() => OnBoardingPage())
|
||||
: box.read(BoxName.emailDriver) != null
|
||||
? Get.off(() => SmsSignupEgypt())
|
||||
: Get.off(() => LoginCaptin());
|
||||
: box.read(BoxName.emailDriver) != null &&
|
||||
box.read(BoxName.deviceInfo) != null &&
|
||||
box.read(BoxName.phoneVerified) == '1'
|
||||
// ? Get.off(() => SmsSignupEgypt())
|
||||
? Get.off(() => HomeCaptain())
|
||||
: Get.off(() => SmsSignupEgypt());
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user