|
|
|
|
@ -19,7 +19,7 @@ class SplashPageState extends State<SplashPage> with WidgetsBindingObserver {
|
|
|
|
|
void initState() {
|
|
|
|
|
super.initState();
|
|
|
|
|
WidgetsBinding.instance.addObserver(this);
|
|
|
|
|
performTimer(context);
|
|
|
|
|
// performTimer(context);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@ -38,10 +38,14 @@ class SplashPageState extends State<SplashPage> with WidgetsBindingObserver {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Timer function to navigate after a delay
|
|
|
|
|
performTimer(BuildContext context) {
|
|
|
|
|
Utils.delay(3).whenComplete(() {
|
|
|
|
|
navigateReplaceWithName(context, AppRoutes.registerSelection);
|
|
|
|
|
});
|
|
|
|
|
// performTimer(BuildContext context) {
|
|
|
|
|
// Utils.delay(3).whenComplete(() {
|
|
|
|
|
// navigateReplaceWithName(context, AppRoutes.registerSelection);
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
navigateToNextDeciderPage() {
|
|
|
|
|
navigateReplaceWithName(context, AppRoutes.registerSelection);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@ -74,8 +78,13 @@ class SplashPageState extends State<SplashPage> with WidgetsBindingObserver {
|
|
|
|
|
// Engine Image
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 3,
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
MyAssets.icEnginePng,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
navigateToNextDeciderPage();
|
|
|
|
|
},
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
MyAssets.icEnginePng,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
// Spacer widget again for spacing
|
|
|
|
|
|