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);
}
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}) {

@ -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

@ -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

Loading…
Cancel
Save