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: [