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