This commit is contained in:
Hamza Aleghwairyeen
2024-04-03 23:39:36 +03:00
parent b1d9cb9fca
commit a80bc50c0d
4 changed files with 38 additions and 28 deletions

View File

@@ -252,14 +252,24 @@ class OrderRequestPage extends StatelessWidget {
padding: const EdgeInsets.all(8.0),
child: RichText(
text: TextSpan(
text: 'Passenger Name is '.tr,
text: 'Passenger: '.tr, // Changed text to be more generic
style: AppStyle.subtitle,
children: [
TextSpan(text: myList[8], style: AppStyle.title),
TextSpan(
text: myList[8],
style: AppStyle
.title), // Assuming myList[8] holds passenger name
TextSpan(text: ' (', style: AppStyle.subtitle),
TextSpan(
text: myList[33].toString(),
style: AppStyle
.title), // Assuming 'rate' holds the passenger rate
TextSpan(text: ' ⭐)', style: AppStyle.subtitle),
],
),
),
),
Padding(
padding: const EdgeInsets.all(4),
child: Container(

View File

@@ -262,10 +262,19 @@ class OrderSpeedRequest extends StatelessWidget {
padding: const EdgeInsets.all(8.0),
child: RichText(
text: TextSpan(
text: 'Passenger Name is '.tr,
text: 'Passenger: '.tr, // Changed text to be more generic
style: AppStyle.subtitle,
children: [
TextSpan(text: myList[8], style: AppStyle.title),
TextSpan(
text: myList[8],
style: AppStyle
.title), // Assuming myList[8] holds passenger name
TextSpan(text: ' (', style: AppStyle.subtitle),
TextSpan(
text: myList[33].toString(),
style: AppStyle
.title), // Assuming 'rate' holds the passenger rate
TextSpan(text: ' ⭐)', style: AppStyle.subtitle),
],
),
),