This commit is contained in:
Hamza-Ayed
2024-02-25 17:27:28 +03:00
parent b33e797f76
commit e2cdf18b59
9 changed files with 114 additions and 45 deletions

View File

@@ -20,27 +20,36 @@ GetBuilder<MapPassengerController> timerForCancelTripFromPassenger() {
decoration: AppStyle.boxDecoration,
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Row(
children: <Widget>[
Stack(
alignment: Alignment.center,
children: [
CircularProgressIndicator(
value: controller.progress,
// Set the color based on the "isNearEnd" condition
color: isNearEnd ? Colors.red : Colors.blue,
child: Column(
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: <Widget>[
Stack(
alignment: Alignment.center,
children: [
CircularProgressIndicator(
value: controller.progress,
// Set the color based on the "isNearEnd" condition
color: isNearEnd ? Colors.red : Colors.blue,
),
Text(
'${controller.remainingTime}',
style: AppStyle.number,
),
],
),
const SizedBox(
width: 30,
),
Text(
'${controller.remainingTime}',
style: AppStyle.number,
),
'You can cancel Ride now'.tr,
style: AppStyle.title,
)
],
),
const SizedBox(
width: 30,
),
Text(
'You can cancel Ride now'.tr,
'After this period\nYou can\'t cancel!'.tr,
style: AppStyle.title,
)
],