|
|
|
|
@ -36,8 +36,6 @@ class SplashPage extends StatefulWidget {
|
|
|
|
|
class _SplashScreenState extends State<SplashPage> {
|
|
|
|
|
late AuthenticationViewModel authVm;
|
|
|
|
|
|
|
|
|
|
bool isNewDesign = true;
|
|
|
|
|
|
|
|
|
|
Future<void> initializeStuff() async {
|
|
|
|
|
Timer(
|
|
|
|
|
Duration(milliseconds: 500),
|
|
|
|
|
@ -50,15 +48,10 @@ class _SplashScreenState extends State<SplashPage> {
|
|
|
|
|
Timer(Duration(seconds: 2, milliseconds: 500), () async {
|
|
|
|
|
LocalNotification.init(onNotificationClick: (payload) {});
|
|
|
|
|
|
|
|
|
|
if (isNewDesign) {
|
|
|
|
|
if (!await Utils.getBoolFromPrefs(CacheConst.firstLaunch)) {
|
|
|
|
|
Navigator.of(context).pushReplacement(FadePage(page: SplashAnimationScreen(routeWidget: OnboardingScreen())));
|
|
|
|
|
} else {
|
|
|
|
|
Navigator.of(context).pushReplacement(
|
|
|
|
|
CustomPageRoute(
|
|
|
|
|
page: LandingNavigation(),
|
|
|
|
|
// page: LoginScreen(),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
Navigator.of(context).pushReplacement(FadePage(page: SplashAnimationScreen(routeWidget: LandingNavigation())));
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
var zoom = ZoomVideoSdk();
|
|
|
|
|
@ -97,42 +90,7 @@ class _SplashScreenState extends State<SplashPage> {
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Scaffold(
|
|
|
|
|
backgroundColor: AppColors.whiteColor,
|
|
|
|
|
body: isNewDesign
|
|
|
|
|
? Lottie.asset(AppAnimations.loadingAnimation, repeat: true, reverse: false, frameRate: FrameRate(60), width: 80.h, height: 80.h, fit: BoxFit.fill).center
|
|
|
|
|
: Stack(
|
|
|
|
|
alignment: Alignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 53),
|
|
|
|
|
child: Image.asset(AppAssets.hmg_logo, fit: BoxFit.fitWidth, width: MediaQuery.of(context).size.width),
|
|
|
|
|
),
|
|
|
|
|
Align(
|
|
|
|
|
alignment: Alignment.bottomCenter,
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
"Powered by",
|
|
|
|
|
style: TextStyle(fontSize: 14, fontWeight: FontWeight.w400, color: AppColors.textColor, letterSpacing: -0.56, height: 16 / 14),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5,
|
|
|
|
|
),
|
|
|
|
|
Utils.buildSvgWithAssets(icon: AppAssets.cloud_logo, width: 40, height: 40),
|
|
|
|
|
SizedBox(height: 7),
|
|
|
|
|
// Text(
|
|
|
|
|
// "Version 1.1.0",
|
|
|
|
|
// style: TextStyle(fontSize: 10, fontWeight: FontWeight.w400, color: Color(0xff3989898), letterSpacing: 0, height: 12 / 10),
|
|
|
|
|
// ),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 18,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
backgroundColor: AppColors.whiteColor,
|
|
|
|
|
body: Lottie.asset(AppAnimations.loadingAnimation, repeat: true, reverse: false, frameRate: FrameRate(60), width: 80.h, height: 80.h, fit: BoxFit.fill).center);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|