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(
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),
),
),
],