This commit is contained in:
Hamza Aleghwairyeen
2024-04-12 03:34:08 +03:00
parent 6904798bcc
commit c68ec9b533
4 changed files with 7 additions and 5 deletions

View File

@@ -43,7 +43,7 @@ class AppStyle {
: GoogleFonts.josefinSans().fontFamily); : GoogleFonts.josefinSans().fontFamily);
static TextStyle number = TextStyle( static TextStyle number = TextStyle(
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
fontSize: 20, fontSize: 14,
color: AppColor.primaryColor, color: AppColor.primaryColor,
fontFamily: GoogleFonts.averiaSansLibre().fontFamily); fontFamily: GoogleFonts.averiaSansLibre().fontFamily);

View File

@@ -2364,8 +2364,9 @@ class MapPassengerController extends GetxController {
totalME = totalCostPassenger - tax; totalME = totalCostPassenger - tax;
costForDriver = fuelPrice * 12; costForDriver = fuelPrice * 12;
if (totalCostPassenger < 1) { if (totalCostPassenger < 20) {
totalCostPassenger = 1; // for eygpt 20 le open ride
totalCostPassenger = 20;
if (double.parse(box.read(BoxName.passengerWalletTotal)) < 0) { if (double.parse(box.read(BoxName.passengerWalletTotal)) < 0) {
totalPassenger = totalCostPassenger + totalPassenger = totalCostPassenger +
(-1) * (double.parse(box.read(BoxName.passengerWalletTotal))); (-1) * (double.parse(box.read(BoxName.passengerWalletTotal)));

View File

@@ -62,8 +62,8 @@ GetBuilder<MapDriverController> driverEndRideBar() {
], ],
) )
: const SizedBox(), : const SizedBox(),
mapDriverController.carType != 'Mashwari' || mapDriverController.carType == 'Speed' ||
mapDriverController.carType != 'Comfort' mapDriverController.carType == 'Delivery'
? Row( ? Row(
mainAxisAlignment: MainAxisAlignment.spaceAround, mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [ children: [

View File

@@ -112,6 +112,7 @@ class PassengerInfoWindow extends StatelessWidget {
], ],
)), )),
Row( Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
Container( Container(
decoration: AppStyle.boxDecoration1, decoration: AppStyle.boxDecoration1,