|
|
|
@ -16,6 +16,7 @@ import 'package:hmg_patient_app_new/core/dependencies.dart';
|
|
|
|
import 'package:hmg_patient_app_new/core/utils/utils.dart';
|
|
|
|
import 'package:hmg_patient_app_new/core/utils/utils.dart';
|
|
|
|
import 'package:hmg_patient_app_new/extensions/widget_extensions.dart';
|
|
|
|
import 'package:hmg_patient_app_new/extensions/widget_extensions.dart';
|
|
|
|
import 'package:hmg_patient_app_new/features/authentication/authentication_view_model.dart';
|
|
|
|
import 'package:hmg_patient_app_new/features/authentication/authentication_view_model.dart';
|
|
|
|
|
|
|
|
import 'package:hmg_patient_app_new/presentation/home/app_update_page.dart';
|
|
|
|
import 'package:hmg_patient_app_new/presentation/home/navigation_screen.dart';
|
|
|
|
import 'package:hmg_patient_app_new/presentation/home/navigation_screen.dart';
|
|
|
|
import 'package:hmg_patient_app_new/presentation/onboarding/onboarding_screen.dart';
|
|
|
|
import 'package:hmg_patient_app_new/presentation/onboarding/onboarding_screen.dart';
|
|
|
|
import 'package:hmg_patient_app_new/presentation/onboarding/splash_animation_screen.dart';
|
|
|
|
import 'package:hmg_patient_app_new/presentation/onboarding/splash_animation_screen.dart';
|
|
|
|
@ -71,10 +72,10 @@ class _SplashScreenState extends State<SplashPage> {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (await Utils.getBoolFromPrefs(CacheConst.firstLaunch)) {
|
|
|
|
if (await Utils.getBoolFromPrefs(CacheConst.firstLaunch)) {
|
|
|
|
// Navigator.of(context).pushReplacement(FadePage(page: SplashAnimationScreen(routeWidget: OnboardingScreen())));
|
|
|
|
// Navigator.of(context).pushReplacement(FadePage(page: SplashAnimationScreen(routeWidget: OnboardingScreen())));
|
|
|
|
Navigator.of(context).pushReplacement(FadePage(page: OnboardingScreen()));
|
|
|
|
Navigator.of(getIt.get<NavigationService>().navigatorKey.currentContext!).pushReplacement(FadePage(page: OnboardingScreen()));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// Navigator.of(context).pushReplacement(FadePage(page: SplashAnimationScreen(routeWidget: LandingNavigation())));
|
|
|
|
// Navigator.of(context).pushReplacement(FadePage(page: SplashAnimationScreen(routeWidget: LandingNavigation())));
|
|
|
|
Navigator.of(context).pushReplacement(FadePage(page: LandingNavigation()));
|
|
|
|
Navigator.of(getIt.get<NavigationService>().navigatorKey.currentContext!).pushReplacement(FadePage(page: LandingNavigation()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|