This commit is contained in:
Hamza-Ayed
2024-06-22 13:12:35 +03:00
parent 1cc0156cfd
commit 3c5321f70b
67 changed files with 91 additions and 740 deletions

View File

@@ -30,7 +30,6 @@ class GoogleSignInHelper {
}
return googleUser;
} catch (error) {
print('Google Sign-In error: $error');
return null;
}
}
@@ -51,7 +50,6 @@ class GoogleSignInHelper {
}
return googleUser;
} catch (error) {
print('Google Sign-In error: $error');
return null;
}
}
@@ -61,10 +59,7 @@ class GoogleSignInHelper {
try {
await _googleSignIn.signOut();
await _handleSignOut();
print('User signed out.');
} catch (error) {
print('Google Sign-Out error: $error');
}
} catch (error) {}
}
static Future<void> _handleSignOut() async {
@@ -88,8 +83,6 @@ class GoogleSignInHelper {
Get.offAll(OnBoardingPage());
// Perform any additional sign-out tasks or API calls here
// For example, you can notify your server about the user sign-out
print('User data cleared.');
}
// Method to get the current signed-in user
@@ -107,10 +100,5 @@ class GoogleSignInHelper {
// Perform any additional sign-up tasks or API calls here
// For example, you can send the user data to your server for registration
print('driverID = ${box.read(BoxName.driverID)}');
print('emailDriver = ${box.read(BoxName.emailDriver)}');
// print('nameDriver = ${box.read(BoxName.nameDriver)}');
// print('driverPhotoUrl = ${box.read(BoxName.driverPhotoUrl)}');
}
}