diff --git a/lib/utils/utils.dart b/lib/utils/utils.dart index a019572..7d8e5b2 100644 --- a/lib/utils/utils.dart +++ b/lib/utils/utils.dart @@ -173,8 +173,8 @@ class Utils { return base64Encode(imageBytes); } - static Future delay(int millis) async { - return await Future.delayed(Duration(milliseconds: millis)); + static Future delay(int seconds) async { + return await Future.delayed(Duration(seconds: seconds)); } static inkWellCorner({double? r}) { diff --git a/lib/views/splash/splash_page.dart b/lib/views/splash/splash_page.dart index 9c84fd5..e99dd8e 100644 --- a/lib/views/splash/splash_page.dart +++ b/lib/views/splash/splash_page.dart @@ -19,7 +19,7 @@ class SplashPageState extends State with WidgetsBindingObserver { void initState() { super.initState(); WidgetsBinding.instance.addObserver(this); - performTimer(context); + // performTimer(context); } @override @@ -38,10 +38,14 @@ class SplashPageState extends State 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 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 diff --git a/pubspec.yaml b/pubspec.yaml index 91acd57..fb9949e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -38,7 +38,7 @@ dependencies: country_code_picker: ^3.0.0 table_calendar: ^3.0.9 intl: any - signalr_core: ^1.1.1 + signalr_core: ^1.1.2 logging: ^1.2.0 percent_indicator: ^4.2.3 change_app_package_name: ^1.3.0 @@ -54,14 +54,13 @@ dependencies: # google google_maps_flutter: ^2.1.1 - geolocator: any - # geocoding: ^2.1.0 - geocoding: ^3.0.0 + geolocator: ^10.1.1 + geocoding: ^4.0.0 # Auth local_auth: ^2.2.0 -# huawei_fido: ^6.3.0+305 + # huawei_fido: ^6.3.0+305 device_info_plus: ^10.1.0