This commit is contained in:
Hamza Aleghwairyeen
2024-04-01 14:25:58 +03:00
parent 6a0547276b
commit aa20cd4455
7 changed files with 53 additions and 32 deletions

View File

@@ -65,7 +65,22 @@ GetBuilder<MapDriverController> driverEndRideBar() {
'Price is ${mapDriverController.price.toStringAsFixed(0)}')
],
),
mapDriverController.remainingTimeTimerRideBegin < 60
mapDriverController.cartype == 'Free Ride'
? Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
MyElevatedButton(
title: 'End Ride'.tr,
onPressed: () {
mapDriverController.finishRideFromDriver();
},
kolor: AppColor.redColor,
),
],
)
: const SizedBox(),
mapDriverController.remainingTimeTimerRideBegin < 60 &&
mapDriverController.cartype != 'Free Ride'
? Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [

View File

@@ -21,19 +21,19 @@ class CarType {
List<CarType> carTypes = [
CarType(
carType: 'Comfort'.tr,
carType: 'Comfort',
carDetail: 'Comfort choice'.tr,
image: 'assets/images/blob.png'),
CarType(
carType: 'Speed'.tr,
carType: 'Speed',
carDetail: 'Better for long trips choice'.tr,
image: 'assets/images/carspeed.png'),
CarType(
carType: 'Delivery'.tr,
carType: 'Delivery',
carDetail: 'Delivery service'.tr,
image: 'assets/images/moto.png'),
CarType(
carType: 'Free Ride'.tr,
carType: 'Free Ride',
carDetail: 'free ride without end point'.tr,
image: 'assets/images/freeRide.png'),
];