This commit is contained in:
Hamza-Ayed
2023-10-18 22:38:06 +03:00
parent 5cbd03f7d8
commit 805754a599
8 changed files with 208 additions and 17 deletions

View File

@@ -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(

View File

@@ -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,