This commit is contained in:
Hamza Aleghwairyeen
2024-04-13 00:55:09 +03:00
parent 4e35874f2b
commit a02965fac9
11 changed files with 142 additions and 42 deletions

View File

@@ -83,6 +83,15 @@ class RateDriverFromPassenger extends StatelessWidget {
),
),
),
const SizedBox(
height: 10,
),
Text(
'Exclusive offers and discounts always with the Sefer app'
.tr,
style: AppStyle.title
.copyWith(color: AppColor.redColor),
)
],
),
)),

View File

@@ -39,6 +39,31 @@ class RatePassenger extends StatelessWidget {
'${'Total price from '.tr}${Get.find<MapDriverController>().passengerName}',
style: AppStyle.title,
),
Container(
decoration: BoxDecoration(
border: Border.all(
width: 2,
color: AppColor.redColor,
)),
child: Padding(
padding: const EdgeInsets.all(4),
child: Text(
(double.parse(controller.price.toString()) *
.12 +
double.parse(
controller.price.toString()))
.toStringAsFixed(2),
style: AppStyle.number.copyWith(
color: AppColor.redColor,
textBaseline: TextBaseline.ideographic,
decoration: TextDecoration.lineThrough,
decorationColor: AppColor.redColor),
),
),
),
const SizedBox(
height: 10,
),
Container(
decoration: BoxDecoration(
border: Border.all(
@@ -53,6 +78,15 @@ class RatePassenger extends StatelessWidget {
),
),
),
const SizedBox(
height: 10,
),
Text(
'Exclusive offers and discounts always with the Sefer app'
.tr,
style: AppStyle.title
.copyWith(color: AppColor.redColor),
)
],
)),
),