This commit is contained in:
Hamza Aleghwairyeen
2024-03-30 15:11:14 +03:00
parent d779765da4
commit 66cd964a89
5 changed files with 29 additions and 26 deletions

View File

@@ -21,11 +21,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>17</string>
<string>20</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.37</string>
<string>1.40</string>
<key>FirebaseAppDelegateProxyEnabled</key>
<string>NO</string>
<key>GMSApiKey</key>

View File

@@ -1153,7 +1153,9 @@ class MapPassengerController extends GetxController {
['latitude']),
double.parse(datadriverCarsLocationToPassengerAfterApplied['message'][0]
['longitude'])));
CarLocationModel model = CarLocationModel.fromJson(
datadriverCarsLocationToPassengerAfterApplied['message'][0]);
carLocationsModels.add(model);
update();
}

View File

@@ -458,7 +458,7 @@ class MyTranslation extends Translations {
'Are you sure to cancel?': "هل أنت متأكد من الإلغاء؟",
'Yes': 'نعم',
'Insert Emergincy Number': "أدخل رقم الطوارئ",
'Insert': "إدراج",
'Insert': "إدراج",'You can decline a request without any cost':'‏يمكنك إلغاء الطلب بدون أي تكلفة',
" My current location is:": "موقعي الحالي هو:",
" \nand I have a trip on": "\nولدي رحلة على",
"App \nwith Passenger ": "التطبيق\nمع الراكب ",

View File

@@ -113,17 +113,19 @@ GetBuilder<MapDriverController> speedCircle() {
? Positioned(
// left: 5,
bottom: 25,
right: 5,
right: 100,
child: Container(
decoration: BoxDecoration(
shape: BoxShape.circle,
color: AppColor.redColor,
border: Border.all(width: 1)),
border: Border.all(width: 2,color: AppColor.secondaryColor)),
height: 60,
width: 60,
child: Text(
mapDriverController.speed.toStringAsFixed(0),
style: AppStyle.number,
child: Center(
child: Text(
mapDriverController.speed.toStringAsFixed(0),
style: AppStyle.number,
),
),
))
: const SizedBox());

View File

@@ -159,23 +159,22 @@ class GoogleMapPassengerWidget extends StatelessWidget {
),
// controller.carMarrkerAplied,
if (controller.statusRide == 'Apply')
// for (var carLocation
// in controller.driverCarsLocationToPassengerAfterApplied)
Marker(
// anchor: const Offset(4, 4),
position: LatLng(
double.parse(controller.datadriverCarsLocationToPassengerAfterApplied['message']
[0]['latitude']),
double.parse(controller.datadriverCarsLocationToPassengerAfterApplied['message']
[0]['longitude'])), //carLocation,
icon: controller.carIcon,
rotation: double.parse(
controller.datadriverCarsLocationToPassengerAfterApplied['message']
[0]['heading']),
markerId: MarkerId(controller
.datadriverCarsLocationToPassengerAfterApplied['message']
[0]['longitude']
.toString())),
for (var carLocation
in controller.driverCarsLocationToPassengerAfterApplied)
Marker(
// anchor: const Offset(4, 4),
position: LatLng(
carLocation.latitude,
carLocation.longitude,
), //carLocation,
icon: controller.carIcon,
rotation: double.parse(controller
.datadriverCarsLocationToPassengerAfterApplied[
'message'][0]['heading']),
markerId: MarkerId(controller
.datadriverCarsLocationToPassengerAfterApplied[
'message'][0]['longitude']
.toString())),
for (int i = 1;
i < controller.coordinatesWithoutEmpty.length - 1;
i++)