This commit is contained in:
Hamza Aleghwairyeen
2024-04-02 23:03:14 +03:00
parent e822f8c552
commit 682da605c5
5 changed files with 22 additions and 21 deletions

View File

@@ -65,8 +65,8 @@ GetBuilder<MapDriverController> driverEndRideBar() {
Text(mapDriverController.rideTimerFromBegin
.toStringAsFixed(0)),
const Icon(Icons.location_on),
Text(mapDriverController.recentDistanceToDash
.toStringAsFixed(0)),
Text(
'${mapDriverController.recentDistanceToDash.toStringAsFixed(0)} ${'KM'.tr}'),
const Icon(Icons.attach_money),
Text(mapDriverController.price.toStringAsFixed(0)),
],
@@ -85,8 +85,7 @@ GetBuilder<MapDriverController> driverEndRideBar() {
],
)
: const SizedBox(),
mapDriverController.remainingTimeTimerRideBegin < 60 &&
mapDriverController.carType != 'Free Ride'
mapDriverController.remainingTimeTimerRideBegin < 60
? Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [

View File

@@ -42,8 +42,8 @@ class SosConnect extends StatelessWidget {
child: MyTextForm(
controller: mapDriverController
.sosEmergincyNumberCotroller,
label: 'Insert Emergincy Number'.tr,
hint: 'Insert Emergincy Number'.tr,
label: 'Insert Emergency Number'.tr,
hint: 'Insert Emergency Number'.tr,
type: TextInputType.phone),
),
confirm: MyElevatedButton(
@@ -73,14 +73,14 @@ class SosConnect extends StatelessWidget {
onTap: () {
if (box.read(BoxName.sosPhoneDriver) == null) {
Get.defaultDialog(
title: 'Insert Emergincy Number'.tr,
title: 'Insert Emergency Number'.tr,
content: Form(
key: mapDriverController.formKey1,
child: MyTextForm(
controller: mapDriverController
.sosEmergincyNumberCotroller,
label: 'Insert Emergincy Number'.tr,
hint: 'Insert Emergincy Number'.tr,
label: 'Insert Emergency Number'.tr,
hint: 'Insert Emergency Number'.tr,
type: TextInputType.phone),
),
confirm: MyElevatedButton(
@@ -99,7 +99,7 @@ class SosConnect extends StatelessWidget {
} else {
launchCommunication(
'whatsapp',
'+962${box.read(BoxName.sosPhoneDriver)}', //todo add number from driver
'+02${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}");
}
},