25-1/31/2

This commit is contained in:
Hamza-Ayed
2025-02-01 18:32:50 +03:00
parent 9b0650b118
commit 630c429fd1
52 changed files with 275 additions and 273 deletions

View File

@@ -39,9 +39,9 @@ class InviteController extends GetxController {
Future<void> shareDriverCode() async {
if (driverCouponCode != null) {
final String shareText = '''
Join SPEED as a driver using my referral code!
Join Tripz as a driver using my referral code!
Use code: $driverCouponCode
Download the SPEED Driver app now and earn rewards!
Download the Tripz Driver app now and earn rewards!
''';
await Share.share(shareText);
}
@@ -50,9 +50,9 @@ Download the SPEED Driver app now and earn rewards!
Future<void> sharePassengerCode() async {
if (couponCode != null) {
final String shareText = '''
Get a discount on your first SPEED ride!
Get a discount on your first Tripz ride!
Use my referral code: $couponCode
Download the SPEED app now and enjoy your ride!
Download the Tripz app now and enjoy your ride!
''';
await Share.share(shareText);
}
@@ -300,7 +300,7 @@ Download the SPEED app now and enjoy your ride!
if (response != 'failure') {
var d = jsonDecode(response);
mySnackbarSuccess('Invite sent successfully'.tr);
String message = '${'*SPEED DRIVER CODE*'.tr}\n\n'
String message = '${'*Tripz DRIVER CODE*'.tr}\n\n'
'${"Use this code in registration".tr}\n'
'${"To get a gift for both".tr}\n\n'
'${"The period of this code is 1 hour".tr}\n\n'
@@ -339,7 +339,7 @@ Download the SPEED app now and enjoy your ride!
mySnackbarSuccess('Invite sent successfully'.tr);
String message = '${'*SPEED APP CODE*'.tr}\n\n'
String message = '${'*Tripz APP CODE*'.tr}\n\n'
'${"Use this code in registration".tr}\n'
'${"To get a gift for both".tr}\n\n'
'${"The period of this code is 1 hour".tr}\n\n'

View File

@@ -118,7 +118,9 @@ class LoginDriverController extends GetxController {
isloading = true;
update();
var res = await CRUD().get(link: AppLink.loginFromGoogleCaptin, payload: {
'email': email,
'email': email.toString().contains('@')
? encryptionHelper.encryptData(email)
: email,
'id': driverID,
});