This commit is contained in:
Hamza-Ayed
2024-06-01 01:54:27 +03:00
parent 02fdf8b0f1
commit 22487e138d
18 changed files with 558 additions and 166 deletions

View File

@@ -123,12 +123,12 @@ class PassengerInfoWindow extends StatelessWidget {
controller.hours > 1
? '⌚️ ${controller.hours}h ${controller.minutes}m' // Ride Duration with emoji
: '⌚️ ${controller.minutes}m', // Short ride duration
style: AppStyle.title,
style: AppStyle.number,
),
),
),
const SizedBox(
width: 16.0), // Add spacing between sections
width: 10.0), // Add spacing between sections
Container(
decoration: AppStyle.boxDecoration1,
width: Get.width * .22,
@@ -136,7 +136,7 @@ class PassengerInfoWindow extends StatelessWidget {
padding: const EdgeInsets.all(4),
child: Text(
' ${controller.distance} km', // Distance with emoji
style: AppStyle.title,
style: AppStyle.number,
),
),
),
@@ -166,11 +166,11 @@ class PassengerInfoWindow extends StatelessWidget {
padding: const EdgeInsets.all(4),
child: Row(
children: [
Text('Total Cost is '.tr,
Text("cost is ".tr,
style: AppStyle.title),
Text(
controller.totalPassenger.toString(),
style: AppStyle.title,
style: AppStyle.number,
),
],
),
@@ -181,7 +181,7 @@ class PassengerInfoWindow extends StatelessWidget {
width: Get.width * .4,
child: Padding(
padding: const EdgeInsets.all(4),
child: Text(controller.carType,
child: Text(controller.carType.tr,
style: AppStyle.title),
),
),

View File

@@ -99,7 +99,7 @@ class SosConnect extends StatelessWidget {
} else {
launchCommunication(
'whatsapp',
'+02${box.read(BoxName.sosPhoneDriver)}', //todo add number from driver
'+2${box.read(BoxName.sosPhoneDriver)}', //todo add number from driver
"${"Hello this is Driver".tr} ${box.read(BoxName.nameDriver)}.${" My current location is:".tr} https://www.google.com/maps/place/${Get.find<LocationController>().myLocation.latitude},${Get.find<LocationController>().myLocation.longitude}${" \nand I have a trip on".tr} ${AppInformation.appName} ${"App \nwith Passenger ".tr}${mapDriverController.passengerName}");
}
},