From 6904798bcc58b787b0e5fb6f30f0c9035c789a48 Mon Sep 17 00:00:00 2001 From: Hamza Aleghwairyeen Date: Fri, 12 Apr 2024 03:18:09 +0300 Subject: [PATCH] 4/11/10 --- .../passenger_info_window.dart | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/lib/views/home/Captin/mapDriverWidgets/passenger_info_window.dart b/lib/views/home/Captin/mapDriverWidgets/passenger_info_window.dart index 1e9fd1f..0bf3108 100644 --- a/lib/views/home/Captin/mapDriverWidgets/passenger_info_window.dart +++ b/lib/views/home/Captin/mapDriverWidgets/passenger_info_window.dart @@ -37,6 +37,7 @@ class PassengerInfoWindow extends StatelessWidget { child: Padding( padding: const EdgeInsets.all(8.0), child: Column( + mainAxisAlignment: MainAxisAlignment.spaceAround, crossAxisAlignment: CrossAxisAlignment.start, children: [ DefaultTextStyle( @@ -121,7 +122,7 @@ class PassengerInfoWindow extends StatelessWidget { controller.hours > 1 ? '⌚️ ${controller.hours}h ${controller.minutes}m' // Ride Duration with emoji : '⌚️ ${controller.minutes}m', // Short ride duration - style: AppStyle.number, + style: AppStyle.title, ), ), ), @@ -129,12 +130,12 @@ class PassengerInfoWindow extends StatelessWidget { width: 16.0), // Add spacing between sections Container( decoration: AppStyle.boxDecoration1, - width: Get.width * .34, + width: Get.width * .27, child: Padding( padding: const EdgeInsets.all(4), child: Text( ' ${controller.distance} km', // Distance with emoji - style: AppStyle.number, + style: AppStyle.title, ), ), ), @@ -179,16 +180,8 @@ class PassengerInfoWindow extends StatelessWidget { width: Get.width * .4, child: Padding( padding: const EdgeInsets.all(4), - child: Row( - children: [ - Text(controller.carType, - style: AppStyle.title), - Text( - controller.totalPassenger.toString(), - style: AppStyle.title, - ), - ], - ), + child: Text(controller.carType, + style: AppStyle.title), ), ), ],