4/23/5
This commit is contained in:
@@ -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,31 +115,36 @@ class RateDriverFromPassenger extends StatelessWidget {
|
|||||||
true)
|
true)
|
||||||
? const DriverTipWidget()
|
? const DriverTipWidget()
|
||||||
: const SizedBox(),
|
: const SizedBox(),
|
||||||
Row(
|
GetBuilder<MapPassengerController>(
|
||||||
mainAxisAlignment:
|
builder: (mapPassengerController) {
|
||||||
MainAxisAlignment.spaceAround,
|
return Row(
|
||||||
children: [
|
mainAxisAlignment:
|
||||||
MyElevatedButton(
|
MainAxisAlignment.spaceAround,
|
||||||
title: 'No i want'.tr,
|
children: [
|
||||||
onPressed: () {
|
MyElevatedButton(
|
||||||
box.write(BoxName.tipPercentage, '0');
|
kolor: AppColor.redColor,
|
||||||
}),
|
title: 'No i want'.tr,
|
||||||
Container(
|
onPressed: () {
|
||||||
decoration: AppStyle.boxDecoration1,
|
box.write(
|
||||||
child: Padding(
|
BoxName.tipPercentage, '0');
|
||||||
padding: const EdgeInsets.all(6),
|
}),
|
||||||
child: Text(
|
Container(
|
||||||
(Get.find<MapPassengerController>()
|
decoration: AppStyle.boxDecoration1,
|
||||||
.totalPassenger *
|
child: Padding(
|
||||||
double.parse(box.read(
|
padding: const EdgeInsets.all(6),
|
||||||
BoxName.tipPercentage)))
|
child: Text(
|
||||||
.toString(),
|
(mapPassengerController
|
||||||
style: AppStyle.title,
|
.totalPassenger *
|
||||||
|
double.parse(box.read(
|
||||||
|
BoxName.tipPercentage)))
|
||||||
|
.toString(),
|
||||||
|
style: AppStyle.title,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
],
|
);
|
||||||
)
|
})
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
|
|||||||
Reference in New Issue
Block a user