10/18/3
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user