6/22/1
This commit is contained in:
@@ -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)}');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user