4/1/3
This commit is contained in:
@@ -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: [
|
||||
|
||||
@@ -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'),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user