Compare commits

...

1 Commits

Author SHA1 Message Date
Faiz Hashmi a4f86f21e7 23 Nov 25 2 months ago

@ -173,8 +173,8 @@ class Utils {
return base64Encode(imageBytes); return base64Encode(imageBytes);
} }
static Future delay(int millis) async { static Future delay(int seconds) async {
return await Future.delayed(Duration(milliseconds: millis)); return await Future.delayed(Duration(seconds: seconds));
} }
static inkWellCorner({double? r}) { static inkWellCorner({double? r}) {

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

@ -38,7 +38,7 @@ dependencies:
country_code_picker: ^3.0.0 country_code_picker: ^3.0.0
table_calendar: ^3.0.9 table_calendar: ^3.0.9
intl: any intl: any
signalr_core: ^1.1.1 signalr_core: ^1.1.2
logging: ^1.2.0 logging: ^1.2.0
percent_indicator: ^4.2.3 percent_indicator: ^4.2.3
change_app_package_name: ^1.3.0 change_app_package_name: ^1.3.0
@ -54,14 +54,13 @@ dependencies:
# google # google
google_maps_flutter: ^2.1.1 google_maps_flutter: ^2.1.1
geolocator: any geolocator: ^10.1.1
# geocoding: ^2.1.0 geocoding: ^4.0.0
geocoding: ^3.0.0
# Auth # Auth
local_auth: ^2.2.0 local_auth: ^2.2.0
# huawei_fido: ^6.3.0+305 # huawei_fido: ^6.3.0+305
device_info_plus: ^10.1.0 device_info_plus: ^10.1.0

Loading…
Cancel
Save