10/18/3
This commit is contained in:
@@ -81,7 +81,7 @@ class RateCaptainFromPassenger extends StatelessWidget {
|
||||
controller: controller.comment,
|
||||
decoration: InputDecoration(
|
||||
labelText: 'Enter your Note'.tr,
|
||||
hintText: 'Type something...',
|
||||
hintText: 'Type something...'.tr,
|
||||
prefixIcon: const Icon(
|
||||
Icons.rate_review), // Add an icon as a prefix
|
||||
suffixIcon: IconButton(
|
||||
|
||||
@@ -38,7 +38,7 @@ class VerifyEmailPage extends StatelessWidget {
|
||||
decoration: InputDecoration(
|
||||
labelStyle: AppStyle.title,
|
||||
border: const OutlineInputBorder(),
|
||||
hintText: '5 digit',
|
||||
hintText: '5 digit'.tr,
|
||||
counterStyle: AppStyle.number,
|
||||
hintStyle: AppStyle.subtitle
|
||||
.copyWith(color: AppColor.accentColor),
|
||||
|
||||
@@ -125,11 +125,13 @@ class HomeCaptain extends StatelessWidget {
|
||||
builder: (homeCaptainController) => Column(
|
||||
children: [
|
||||
Text(
|
||||
'Active Duration: ${homeCaptainController.activeDuration.inSeconds} seconds',
|
||||
'Active Duration:'.tr +
|
||||
' ${homeCaptainController.activeDuration.inSeconds} seconds',
|
||||
style: const TextStyle(fontSize: 20),
|
||||
),
|
||||
Text(
|
||||
'Total Duration: ${homeCaptainController.calculateTotalDuration()} seconds',
|
||||
'Total Duration:'.tr +
|
||||
' ${homeCaptainController.calculateTotalDuration()} seconds',
|
||||
style: const TextStyle(fontSize: 20),
|
||||
),
|
||||
TextButton(
|
||||
|
||||
@@ -107,7 +107,8 @@ class PassengerInfoWindow extends StatelessWidget {
|
||||
launchCommunication(
|
||||
'whatsapp',
|
||||
controller.phone.toString(),
|
||||
'Hello this is Captain ${box.read(BoxName.nameDriver)}');
|
||||
'Hello this is Captain'.tr +
|
||||
' ${box.read(BoxName.nameDriver)}');
|
||||
},
|
||||
icon: const Icon(
|
||||
Icons.whatshot,
|
||||
@@ -118,7 +119,8 @@ class PassengerInfoWindow extends StatelessWidget {
|
||||
launchCommunication(
|
||||
'sms',
|
||||
controller.phone.toString(),
|
||||
'Hello this is Captain ${box.read(BoxName.nameDriver)}');
|
||||
'Hello this is Captain'.tr +
|
||||
' ${box.read(BoxName.nameDriver)}');
|
||||
},
|
||||
icon: const Icon(
|
||||
Icons.sms_rounded,
|
||||
@@ -129,7 +131,8 @@ class PassengerInfoWindow extends StatelessWidget {
|
||||
launchCommunication(
|
||||
'email',
|
||||
controller.phone.toString(),
|
||||
'Hello this is Captain ${box.read(BoxName.nameDriver)}');
|
||||
'Hello this is Captain'.tr +
|
||||
' ${box.read(BoxName.nameDriver)}');
|
||||
},
|
||||
icon: const Icon(
|
||||
Icons.email,
|
||||
|
||||
@@ -124,7 +124,8 @@ class RideBeginPassenger extends StatelessWidget {
|
||||
validator: (value) {
|
||||
if (value!.isEmpty ||
|
||||
value.length < 10) {
|
||||
return 'Please enter a phone number';
|
||||
return 'Please enter a phone number'
|
||||
.tr;
|
||||
}
|
||||
// Add additional validation if needed
|
||||
return null;
|
||||
|
||||
@@ -63,7 +63,7 @@ class TimerToPassengerFromDriver extends StatelessWidget {
|
||||
),
|
||||
controller.remainingTimeToPassengerFromDriverAfterApplied < 60
|
||||
? MyElevatedButton(
|
||||
title: 'If you in Car Now. Press Start The Ride',
|
||||
title: 'If you in Car Now. Press Start The Ride'.tr,
|
||||
onPressed: () async {
|
||||
//todo start the trip and rest all counter ,start new counter of the trip time
|
||||
|
||||
|
||||
@@ -62,12 +62,14 @@ class PassengerWallet extends StatelessWidget {
|
||||
child:
|
||||
box.read(BoxName.passengerWalletTotal) == null
|
||||
? Text(
|
||||
'You Dont Have Any amount in ${AppInfo.appName} Wallet!'
|
||||
.tr,
|
||||
'You Dont Have Any amount in'.tr +
|
||||
' ${AppInfo.appName}' +
|
||||
'Wallet!'.tr,
|
||||
style: AppStyle.title,
|
||||
)
|
||||
: Text(
|
||||
'You Have ${box.read(BoxName.passengerWalletTotal).toString()} JD in ${AppInfo.appName} Wallet',
|
||||
'You Have'.tr +
|
||||
' ${box.read(BoxName.passengerWalletTotal).toString()} JD in ${AppInfo.appName} Wallet',
|
||||
style: AppStyle.title,
|
||||
),
|
||||
),
|
||||
@@ -194,7 +196,7 @@ class PassengerWallet extends StatelessWidget {
|
||||
left: Get.width * .3,
|
||||
right: Get.width * .3,
|
||||
child: MyElevatedButton(
|
||||
title: 'Show Promos',
|
||||
title: 'Show Promos'.tr,
|
||||
onPressed: () {
|
||||
controller.changePromoSheetDialogue();
|
||||
},
|
||||
@@ -313,7 +315,7 @@ class PassengerWallet extends StatelessWidget {
|
||||
)),
|
||||
const Spacer(),
|
||||
MyElevatedButton(
|
||||
title: 'Pay with Your PayPal',
|
||||
title: 'Pay with Your PayPal'.tr,
|
||||
onPressed: () {
|
||||
if (controller.selectedAmount != 0) {
|
||||
print(controller.selectedAmount);
|
||||
@@ -489,7 +491,7 @@ class PassengerWallet extends StatelessWidget {
|
||||
},
|
||||
),
|
||||
MyElevatedButton(
|
||||
title: 'Cancel',
|
||||
title: 'Cancel'.tr,
|
||||
kolor: AppColor.redColor,
|
||||
onPressed: () {
|
||||
controller.changePromoSheetDialogue();
|
||||
|
||||
Reference in New Issue
Block a user