4/11/3
This commit is contained in:
@@ -22,10 +22,11 @@ GetBuilder<MapDriverController> driverEndRideBar() {
|
||||
height: mapDriverController.remainingTimeTimerRideBegin < 60
|
||||
? mapDriverController.driverEndPage = 190
|
||||
: mapDriverController.carType == 'Mashwari'
|
||||
? 150
|
||||
? 120
|
||||
: 170,
|
||||
// width: 240,
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||
children: [
|
||||
mapDriverController.carType != 'Mashwari'
|
||||
? Row(
|
||||
|
||||
@@ -109,50 +109,25 @@ class PassengerInfoWindow extends StatelessWidget {
|
||||
],
|
||||
),
|
||||
],
|
||||
)
|
||||
// AnimatedTextKit(
|
||||
// animatedTexts: [
|
||||
// ScaleAnimatedText(
|
||||
// 'Go to passenger Location now'.tr,
|
||||
// ),
|
||||
// WavyAnimatedText(
|
||||
// 'Go to passenger Location now'.tr),
|
||||
// FlickerAnimatedText(
|
||||
// 'Go to passenger Location now'.tr),
|
||||
// WavyAnimatedText(
|
||||
// 'Go to passenger Location now'.tr),
|
||||
// ],
|
||||
// isRepeatingAnimation: true,
|
||||
// onTap: () {
|
||||
// // print("Tap Event");
|
||||
// },
|
||||
// ),
|
||||
),
|
||||
)),
|
||||
Row(
|
||||
children: [
|
||||
Text(
|
||||
controller.hours > 1
|
||||
? '${'${'Your Ride Duration is '.tr}${controller.hours}${' H and'.tr}'} ${controller.minutes} m'
|
||||
: '${'Your Ride Duration is '.tr} ${controller.minutes} ${'m'.tr}',
|
||||
style: AppStyle.title),
|
||||
],
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
Text('Distance of the Ride is '.tr,
|
||||
style: AppStyle.title),
|
||||
Text(
|
||||
'${controller.distance} ${'KM'.tr}',
|
||||
controller.hours > 1
|
||||
? '⌚️ ${controller.hours}h ${controller.minutes}m' // Ride Duration with emoji
|
||||
: '⌚️ ${controller.minutes}m', // Short ride duration
|
||||
style: AppStyle.title,
|
||||
),
|
||||
],
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
Text('Name of the Passenger is '.tr,
|
||||
style: AppStyle.title),
|
||||
const SizedBox(
|
||||
width: 16.0), // Add spacing between sections
|
||||
Text(
|
||||
controller.passengerName.toString(),
|
||||
' ${controller.distance}km', // Distance with emoji
|
||||
style: AppStyle.title,
|
||||
),
|
||||
const SizedBox(
|
||||
width: 16.0), // Add spacing between sections
|
||||
Text(
|
||||
' ${controller.passengerName}', // Passenger name with emoji
|
||||
style: AppStyle.title,
|
||||
),
|
||||
],
|
||||
@@ -214,11 +189,17 @@ class PassengerInfoWindow extends StatelessWidget {
|
||||
title:
|
||||
'Is the Passenger in your Car ?'
|
||||
.tr,
|
||||
titleStyle:
|
||||
AppStyle.title,
|
||||
middleText:
|
||||
'don\'t start trip if not '
|
||||
.tr,
|
||||
middleTextStyle:
|
||||
AppStyle.title,
|
||||
confirm: MyElevatedButton(
|
||||
title: 'OK'.tr,
|
||||
kolor: AppColor
|
||||
.greenColor,
|
||||
onPressed: () async {
|
||||
await controller
|
||||
.startRideFromDriver();
|
||||
@@ -228,6 +209,8 @@ class PassengerInfoWindow extends StatelessWidget {
|
||||
title:
|
||||
'No ,still Waiting.'
|
||||
.tr,
|
||||
kolor:
|
||||
AppColor.redColor,
|
||||
onPressed: () {
|
||||
Get.back();
|
||||
}));
|
||||
@@ -319,6 +302,8 @@ class PassengerInfoWindow extends StatelessWidget {
|
||||
title:
|
||||
'Are you sure to cancel?'
|
||||
.tr,
|
||||
titleStyle:
|
||||
AppStyle.title,
|
||||
middleText: '',
|
||||
confirm:
|
||||
MyElevatedButton(
|
||||
|
||||
Reference in New Issue
Block a user