4/9/1
This commit is contained in:
@@ -200,7 +200,7 @@ class OrderRequestPage extends StatelessWidget {
|
||||
)),
|
||||
),
|
||||
Container(
|
||||
height: Get.height * .15,
|
||||
height: Get.height * .2,
|
||||
width: Get.width * .9,
|
||||
decoration: AppStyle.boxDecoration1,
|
||||
child: Column(
|
||||
@@ -284,7 +284,10 @@ class OrderRequestPage extends StatelessWidget {
|
||||
style: AppStyle.title,
|
||||
children: [
|
||||
TextSpan(
|
||||
text: (mpg * double.parse(myList[5]))
|
||||
text: ((Get.find<HomeCaptainController>()
|
||||
.fuelPrice /
|
||||
12) *
|
||||
double.parse(myList[5]))
|
||||
.toStringAsFixed(2),
|
||||
style: AppStyle.headTitle2),
|
||||
],
|
||||
|
||||
@@ -81,11 +81,11 @@ class OrderSpeedRequest extends StatelessWidget {
|
||||
endIcon = value;
|
||||
});
|
||||
// }
|
||||
double mpg = 0;
|
||||
calculateConsumptionFuel() {
|
||||
mpg = Get.find<HomeCaptainController>().fuelPrice /
|
||||
12; //todo in register car add mpg in box
|
||||
}
|
||||
// double mpg = 0;
|
||||
// calculateConsumptionFuel() {
|
||||
// mpg = Get.find<HomeCaptainController>().fuelPrice /
|
||||
// 12; //todo in register car add mpg in box
|
||||
// }
|
||||
|
||||
return MyScafolld(
|
||||
title: 'Order Details'.tr,
|
||||
@@ -199,7 +199,7 @@ class OrderSpeedRequest extends StatelessWidget {
|
||||
)),
|
||||
),
|
||||
Container(
|
||||
height: Get.height * .15,
|
||||
height: Get.height * .2,
|
||||
width: Get.width * .9,
|
||||
decoration: AppStyle.boxDecoration1,
|
||||
child: Column(
|
||||
@@ -292,8 +292,11 @@ class OrderSpeedRequest extends StatelessWidget {
|
||||
style: AppStyle.title,
|
||||
children: [
|
||||
TextSpan(
|
||||
text: (mpg * double.parse(myList[5]))
|
||||
.toStringAsFixed(2),
|
||||
text:
|
||||
((Get.find<HomeCaptainController>().fuelPrice /
|
||||
12) *
|
||||
double.parse(myList[5]))
|
||||
.toStringAsFixed(2),
|
||||
style: AppStyle.headTitle2),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user