This commit is contained in:
Hamza Aleghwairyeen
2024-04-12 03:18:09 +03:00
parent 76a318df38
commit 6904798bcc

View File

@@ -37,6 +37,7 @@ class PassengerInfoWindow extends StatelessWidget {
child: Padding( child: Padding(
padding: const EdgeInsets.all(8.0), padding: const EdgeInsets.all(8.0),
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
DefaultTextStyle( DefaultTextStyle(
@@ -121,7 +122,7 @@ class PassengerInfoWindow extends StatelessWidget {
controller.hours > 1 controller.hours > 1
? '⌚️ ${controller.hours}h ${controller.minutes}m' // Ride Duration with emoji ? '⌚️ ${controller.hours}h ${controller.minutes}m' // Ride Duration with emoji
: '⌚️ ${controller.minutes}m', // Short ride duration : '⌚️ ${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 width: 16.0), // Add spacing between sections
Container( Container(
decoration: AppStyle.boxDecoration1, decoration: AppStyle.boxDecoration1,
width: Get.width * .34, width: Get.width * .27,
child: Padding( child: Padding(
padding: const EdgeInsets.all(4), padding: const EdgeInsets.all(4),
child: Text( child: Text(
' ${controller.distance} km', // Distance with emoji ' ${controller.distance} km', // Distance with emoji
style: AppStyle.number, style: AppStyle.title,
), ),
), ),
), ),
@@ -179,16 +180,8 @@ class PassengerInfoWindow extends StatelessWidget {
width: Get.width * .4, width: Get.width * .4,
child: Padding( child: Padding(
padding: const EdgeInsets.all(4), padding: const EdgeInsets.all(4),
child: Row( child: Text(controller.carType,
children: [ style: AppStyle.title),
Text(controller.carType,
style: AppStyle.title),
Text(
controller.totalPassenger.toString(),
style: AppStyle.title,
),
],
),
), ),
), ),
], ],