This commit is contained in:
Hamza-Ayed
2024-06-08 02:12:15 +03:00
parent 8864261523
commit ac84011102
13 changed files with 128 additions and 665 deletions

View File

@@ -307,7 +307,9 @@ class FirebaseMessagesController extends GetxController {
return Get.defaultDialog(
barrierDismissible: false,
title: 'Hi ,I Arrive your site'.tr,
titleStyle: AppStyle.title,
middleText: 'Please go to Car Driver'.tr,
middleTextStyle: AppStyle.title,
confirm: MyElevatedButton(
title: 'Ok I will go now.'.tr,
onPressed: () {

View File

@@ -30,7 +30,7 @@ class AudioRecorderController extends GetxController {
final directory = await getApplicationDocumentsDirectory();
// Generate a unique file name using the current timestamp
String fileName =
'${DateTime.now().year}-${DateTime.now().month}-${DateTime.now().day}_${Get.find<MapPassengerController>().rideId}.m4a';
'${DateTime.now().year}-${DateTime.now().month}-${DateTime.now().day}_${Get.find<MapPassengerController>().rideId}.aac';
filePath = '${directory.path}/$fileName';
// Define the configuration for the recording

View File

@@ -2623,9 +2623,10 @@ class MapPassengerController extends GetxController {
if (jsonDecode(res)['message']['rating'] == null) {
passengerRate = 5;
} else {
passengerRate =
double.parse(jsonDecode(res)['message']['rating'].toString());
passengerRate = jsonDecode(res)['message']['rating'];
}
} else {
passengerRate = 5;
}
}

View File

@@ -4,6 +4,10 @@ class MyTranslation extends Translations {
@override
Map<String, Map<String, String>> get keys => {
"ar": {
"Notifications": "إشعارات",
'💳 Pay with Credit Card': "ادفع باستخدام بطاقة الائتمان💳",
"⚠️ You need to choose an amount!": "⚠️ يجب عليك اختيار مبلغ!",
'💰 Pay with Wallet': "ادفع باستخدام المحفظة",
"You must restart the app to change the language.":
"يجب إعادة تشغيل التطبيق لتغيير اللغة",
"joined": "انضم",