4/11/2
This commit is contained in:
@@ -76,7 +76,7 @@ class MapDriverController extends GetxController {
|
|||||||
bool isRideFinished = false;
|
bool isRideFinished = false;
|
||||||
bool isRideStarted = false;
|
bool isRideStarted = false;
|
||||||
bool isPriceWindow = false;
|
bool isPriceWindow = false;
|
||||||
double passengerInfoWindow = Get.height * .39;
|
double passengerInfoWindowHeight = Get.height * .4;
|
||||||
double driverEndPage = 100;
|
double driverEndPage = 100;
|
||||||
double progress = 0;
|
double progress = 0;
|
||||||
double progressToPassenger = 0;
|
double progressToPassenger = 0;
|
||||||
@@ -161,7 +161,7 @@ class MapDriverController extends GetxController {
|
|||||||
|
|
||||||
void changeRideToBeginToPassenger() {
|
void changeRideToBeginToPassenger() {
|
||||||
isRideBegin = true;
|
isRideBegin = true;
|
||||||
passengerInfoWindow = Get.height * .22;
|
passengerInfoWindowHeight = Get.height * .22;
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -807,7 +807,7 @@ class MapDriverController extends GetxController {
|
|||||||
|
|
||||||
void changePassengerInfoWindow() {
|
void changePassengerInfoWindow() {
|
||||||
isPassengerInfoWindow = !isPassengerInfoWindow;
|
isPassengerInfoWindow = !isPassengerInfoWindow;
|
||||||
passengerInfoWindow = isPassengerInfoWindow == true ? 200 : 0;
|
passengerInfoWindowHeight = isPassengerInfoWindow == true ? 200 : 0;
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -142,8 +142,8 @@ class MapPassengerController extends GetxController {
|
|||||||
bool isWayPointStopsSheetUtilGetMap = false;
|
bool isWayPointStopsSheetUtilGetMap = false;
|
||||||
double heightBottomSheetShown = 0;
|
double heightBottomSheetShown = 0;
|
||||||
double cashConfirmPageShown = 250;
|
double cashConfirmPageShown = 250;
|
||||||
late String driverId;
|
late String driverId = '';
|
||||||
late String gender;
|
late String gender = '';
|
||||||
double widthMapTypeAndTraffic = 50;
|
double widthMapTypeAndTraffic = 50;
|
||||||
double paymentPageShown = Get.height * .6;
|
double paymentPageShown = Get.height * .6;
|
||||||
late LatLng southwest;
|
late LatLng southwest;
|
||||||
@@ -686,7 +686,7 @@ class MapPassengerController extends GetxController {
|
|||||||
remainingTimeToPassengerFromDriverAfterApplied = 0;
|
remainingTimeToPassengerFromDriverAfterApplied = 0;
|
||||||
remainingTimeDriverWaitPassenger5Minute = 0;
|
remainingTimeDriverWaitPassenger5Minute = 0;
|
||||||
rideTimerBegin = true;
|
rideTimerBegin = true;
|
||||||
statusRide == 'Begin';
|
statusRide = 'Begin';
|
||||||
isDriverInPassengerWay = false;
|
isDriverInPassengerWay = false;
|
||||||
isDriverArrivePassenger = false;
|
isDriverArrivePassenger = false;
|
||||||
update();
|
update();
|
||||||
@@ -834,14 +834,14 @@ class MapPassengerController extends GetxController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int currentTimeSearchingCaptainWindow = 0;
|
int currentTimeSearchingCaptainWindow = 0;
|
||||||
late String driverPhone;
|
late String driverPhone = '';
|
||||||
late String driverRate;
|
late String driverRate = '';
|
||||||
late String firstName;
|
late String firstName = '';
|
||||||
late String carColor;
|
late String carColor = '';
|
||||||
late String carYear;
|
late String carYear = '';
|
||||||
late String model;
|
late String model = '';
|
||||||
late String make;
|
late String make = '';
|
||||||
late String licensePlate;
|
late String licensePlate = '';
|
||||||
confirmRideForFirstDriver() async {
|
confirmRideForFirstDriver() async {
|
||||||
await getCarsLocationByPassengerAndReloadMarker();
|
await getCarsLocationByPassengerAndReloadMarker();
|
||||||
await getNearestDriverByPassengerLocationAPIGOOGLE();
|
await getNearestDriverByPassengerLocationAPIGOOGLE();
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ class MyTranslation extends Translations {
|
|||||||
"By selecting \"I Agree\" below, I have reviewed and agree to the Terms of Use and acknowledge the Privacy Notice. I am at least 18 years of age.":
|
"By selecting \"I Agree\" below, I have reviewed and agree to the Terms of Use and acknowledge the Privacy Notice. I am at least 18 years of age.":
|
||||||
"بتحديد \"أوافق\" أدناه ، فإنني أوافق على مراجعة وقبول شروط الاستخدام وإقرار إشعار الخصوصية. أنا على الأقل 18 عامًا من العمر.",
|
"بتحديد \"أوافق\" أدناه ، فإنني أوافق على مراجعة وقبول شروط الاستخدام وإقرار إشعار الخصوصية. أنا على الأقل 18 عامًا من العمر.",
|
||||||
"Update": "تحديث",
|
"Update": "تحديث",
|
||||||
"You Should choose rate figure": "يجب عليك اختيار رقم السعر",
|
"You Should choose rate figure": "يجب عليك اختيار تقييم",
|
||||||
"Login Captin": "تسجيل دخول الكابتن",
|
"Login Captin": "تسجيل دخول الكابتن",
|
||||||
"Register Captin": "تسجيل كابتن جديد",
|
"Register Captin": "تسجيل كابتن جديد",
|
||||||
"Send Verfication Code": "أرسل رمز التحقق",
|
"Send Verfication Code": "أرسل رمز التحقق",
|
||||||
@@ -442,7 +442,6 @@ class MyTranslation extends Translations {
|
|||||||
'Total points is ': "إجمالي النقاط هو",
|
'Total points is ': "إجمالي النقاط هو",
|
||||||
'Total Connection Duration:': "إجمالي مدة الإتصال:",
|
'Total Connection Duration:': "إجمالي مدة الإتصال:",
|
||||||
' H and': "ساعة و",
|
' H and': "ساعة و",
|
||||||
'm': "دقيقة",
|
|
||||||
'Hello this is Driver': "مرحبا هذا السائق",
|
'Hello this is Driver': "مرحبا هذا السائق",
|
||||||
'Is the Passenger in your Car ?': "هل الراكب في سيارتك؟",
|
'Is the Passenger in your Car ?': "هل الراكب في سيارتك؟",
|
||||||
'don\'t start trip if not ': "لا تبدأ الرحلة إذا لم يكن",
|
'don\'t start trip if not ': "لا تبدأ الرحلة إذا لم يكن",
|
||||||
@@ -633,7 +632,6 @@ class MyTranslation extends Translations {
|
|||||||
'Tariffs': "التعرفه",
|
'Tariffs': "التعرفه",
|
||||||
'Minimum fare': "الحد الأدنى للأجرة",
|
'Minimum fare': "الحد الأدنى للأجرة",
|
||||||
'Maximum fare': "الحد الأقصى للأجرة",
|
'Maximum fare': "الحد الأقصى للأجرة",
|
||||||
'JOD': "د.أ",
|
|
||||||
'Flag-down fee': "رسوم التشغيل",
|
'Flag-down fee': "رسوم التشغيل",
|
||||||
'Including Tax': "بما في ذلك الضرائب",
|
'Including Tax': "بما في ذلك الضرائب",
|
||||||
'BookingFee': "رسوم الطلب",
|
'BookingFee': "رسوم الطلب",
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ class PassengerInfoWindow extends StatelessWidget {
|
|||||||
// left: 8,
|
// left: 8,
|
||||||
child: AnimatedContainer(
|
child: AnimatedContainer(
|
||||||
duration: const Duration(milliseconds: 300),
|
duration: const Duration(milliseconds: 300),
|
||||||
height: controller.passengerInfoWindow,
|
height: controller.passengerInfoWindowHeight,
|
||||||
width: Get.width * .99,
|
width: Get.width * .99,
|
||||||
decoration: AppStyle.boxDecoration,
|
decoration: AppStyle.boxDecoration,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ class ApplyOrderWidget extends StatelessWidget {
|
|||||||
right: 0,
|
right: 0,
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: AppStyle.boxDecoration1,
|
decoration: AppStyle.boxDecoration1,
|
||||||
height: Get.height * .3,
|
height: Get.height * .35,
|
||||||
child: ListView(
|
child: ListView(
|
||||||
children: [
|
children: [
|
||||||
InkWell(
|
InkWell(
|
||||||
@@ -84,7 +84,7 @@ class ApplyOrderWidget extends StatelessWidget {
|
|||||||
width: 10,
|
width: 10,
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
height: 200,
|
height: Get.height * .3,
|
||||||
width: Get.width * .9,
|
width: Get.width * .9,
|
||||||
decoration: AppStyle.boxDecoration1,
|
decoration: AppStyle.boxDecoration1,
|
||||||
child: Column(
|
child: Column(
|
||||||
@@ -299,7 +299,7 @@ class DriverArrivePassengerAndWaitMinute extends StatelessWidget {
|
|||||||
color: controller.remainingTimeDriverWaitPassenger5Minute < 60
|
color: controller.remainingTimeDriverWaitPassenger5Minute < 60
|
||||||
? AppColor.redColor
|
? AppColor.redColor
|
||||||
: AppColor.greenColor,
|
: AppColor.greenColor,
|
||||||
minHeight: 30,
|
minHeight: 25,
|
||||||
borderRadius: BorderRadius.circular(15),
|
borderRadius: BorderRadius.circular(15),
|
||||||
value:
|
value:
|
||||||
controller.progressTimerDriverWaitPassenger5Minute.toDouble(),
|
controller.progressTimerDriverWaitPassenger5Minute.toDouble(),
|
||||||
@@ -309,7 +309,7 @@ class DriverArrivePassengerAndWaitMinute extends StatelessWidget {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'The driver waiting you in picked location .'.tr,
|
'The driver waiting you in picked location .'.tr,
|
||||||
style: AppStyle.title,
|
style: AppStyle.subtitle,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
|
|||||||
@@ -20,21 +20,21 @@ class RideBeginPassenger extends StatelessWidget {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
ProfileController profileController = Get.put(ProfileController());
|
ProfileController profileController = Get.put(ProfileController());
|
||||||
AudioController audioController = Get.put(AudioController());
|
AudioController audioController = Get.put(AudioController());
|
||||||
|
// Get.put(MapPassengerController());
|
||||||
return GetBuilder<MapPassengerController>(builder: (controller) {
|
return GetBuilder<MapPassengerController>(builder: (controller) {
|
||||||
if ( //controller.rideTimerBegin ||
|
if (controller.statusRide == 'Begin' || !controller.statusRideFromStart) {
|
||||||
controller.statusRide == 'Begin' || !controller.statusRideFromStart) {
|
|
||||||
return Positioned(
|
return Positioned(
|
||||||
left: 10,
|
left: 10,
|
||||||
right: 10,
|
right: 10,
|
||||||
bottom: 4,
|
bottom: 4,
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: AppStyle.boxDecoration,
|
decoration: AppStyle.boxDecoration,
|
||||||
height: controller.rideTimerBegin ? Get.height * .3 : 0,
|
height: controller.statusRide == 'Begin' ? Get.height * .33 : 0,
|
||||||
// width: 100,
|
// width: 100,
|
||||||
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.spaceAround,
|
||||||
children: [
|
children: [
|
||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
@@ -58,6 +58,9 @@ class RideBeginPassenger extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
// SizedBox(
|
||||||
|
// height: 5,
|
||||||
|
// ),
|
||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||||
children: [
|
children: [
|
||||||
|
|||||||
Reference in New Issue
Block a user