This commit is contained in:
Hamza Aleghwairyeen
2024-04-24 01:51:33 +03:00
parent 173a6cbf7e
commit 037fa65a55

View File

@@ -39,7 +39,7 @@ class RateDriverFromPassenger extends StatelessWidget {
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Text(
'${'Total price to '.tr}${Get.find<MapPassengerController>().firstName}',
@@ -115,31 +115,36 @@ class RateDriverFromPassenger extends StatelessWidget {
true)
? const DriverTipWidget()
: const SizedBox(),
Row(
mainAxisAlignment:
MainAxisAlignment.spaceAround,
children: [
MyElevatedButton(
title: 'No i want'.tr,
onPressed: () {
box.write(BoxName.tipPercentage, '0');
}),
Container(
decoration: AppStyle.boxDecoration1,
child: Padding(
padding: const EdgeInsets.all(6),
child: Text(
(Get.find<MapPassengerController>()
.totalPassenger *
double.parse(box.read(
BoxName.tipPercentage)))
.toString(),
style: AppStyle.title,
GetBuilder<MapPassengerController>(
builder: (mapPassengerController) {
return Row(
mainAxisAlignment:
MainAxisAlignment.spaceAround,
children: [
MyElevatedButton(
kolor: AppColor.redColor,
title: 'No i want'.tr,
onPressed: () {
box.write(
BoxName.tipPercentage, '0');
}),
Container(
decoration: AppStyle.boxDecoration1,
child: Padding(
padding: const EdgeInsets.all(6),
child: Text(
(mapPassengerController
.totalPassenger *
double.parse(box.read(
BoxName.tipPercentage)))
.toString(),
style: AppStyle.title,
),
),
),
),
],
)
],
);
})
],
),
)),