This commit is contained in:
Hamza-Ayed
2024-05-31 01:25:20 +03:00
parent 93adf15874
commit efec9eb6a2
8 changed files with 509 additions and 503 deletions

View File

@@ -81,8 +81,8 @@ class RegisterController extends GetxController {
'token': randomNumber.toString(),
});
// await smsEgyptController.sendSmsEgypt(
// phoneController.text.toString(), randomNumber.toString());
await smsEgyptController.sendSmsEgypt(
phoneController.text.toString(), randomNumber.toString());
isSent = true;
isLoading = false;
update();

View File

@@ -22,7 +22,7 @@ void launchCommunication(
url = 'tel:$contactInfo';
break;
case 'sms':
url = 'sms:$contactInfo?body=$encodedMessage';
url = 'sms:$contactInfo&body=$encodedMessage';
break;
case 'whatsapp':
url =
@@ -58,8 +58,10 @@ void launchCommunication(
return;
}
if (await canLaunch(url)) {
await launch(url);
print('Launching URL: $url'); // Add this line for debugging
if (await canLaunchUrl(Uri.parse(url))) {
await launchUrl(Uri.parse(url));
} else {
print('Could not launch $url');
}

View File

@@ -4,6 +4,8 @@ class MyTranslation extends Translations {
@override
Map<String, Map<String, String>> get keys => {
"ar": {
'The driver waiting you in picked location .':
"السائق ينتظرك في موقع الركوب.",
'About Us': "نبذة عنا",
"Most Secure Methods": "أساليب الأمان الأكثر فاعلية",
"In-App VOIP Calls": "مكالمات VOIP داخل التطبيق",