5/10/3
This commit is contained in:
@@ -95,7 +95,7 @@ GetBuilder<MapPassengerController> formSearchPlacesDestenation() {
|
||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||
children: [
|
||||
InkWell(
|
||||
onTap: () {
|
||||
onTap: () async {
|
||||
if (box.read(BoxName.addWork) == 'addWork') {
|
||||
controller.workLocationFromMap = true;
|
||||
controller.changeMainBottomMenuMap();
|
||||
@@ -114,23 +114,10 @@ GetBuilder<MapPassengerController> formSearchPlacesDestenation() {
|
||||
controller.newStartPointLocation;
|
||||
controller.changeMainBottomMenuMap();
|
||||
|
||||
controller.getMap(
|
||||
await controller.getMap(
|
||||
'${controller.passengerLocation.latitude},${controller.passengerLocation.longitude}',
|
||||
'${latLng.latitude},${latLng.longitude}',
|
||||
);
|
||||
// controller.currentLocationToFormPlaces = false;
|
||||
// controller.placesDestination = [];
|
||||
// // controller.isCancelRidePageShown = true;
|
||||
// controller.clearPlacesStart();
|
||||
// controller.clearPlacesDestination();
|
||||
// controller.passengerStartLocationFromMap =
|
||||
// false;
|
||||
// controller.isPickerShown = false;
|
||||
// controller.bottomSheet();
|
||||
|
||||
// controller.showBottomSheet1();
|
||||
|
||||
// controller.update();
|
||||
controller.currentLocationToFormPlaces = false;
|
||||
controller.placesDestination = [];
|
||||
// controller.isCancelRidePageShown = true;
|
||||
@@ -139,17 +126,8 @@ GetBuilder<MapPassengerController> formSearchPlacesDestenation() {
|
||||
controller.passengerStartLocationFromMap =
|
||||
false;
|
||||
controller.isPickerShown = false;
|
||||
// controller.showBottomSheet1();
|
||||
// Get.back();
|
||||
controller.bottomSheet();
|
||||
controller.showBottomSheet1();
|
||||
controller.placesDestination = [];
|
||||
controller.placeDestinationController.clear();
|
||||
|
||||
controller.showBottomSheet1();
|
||||
// Get.back();
|
||||
// controller.showBottomSheet1();
|
||||
|
||||
controller.changeMainBottomMenuMap();
|
||||
}
|
||||
},
|
||||
onLongPress: () {
|
||||
@@ -172,8 +150,8 @@ GetBuilder<MapPassengerController> formSearchPlacesDestenation() {
|
||||
border: Border.all()),
|
||||
child: Text(
|
||||
' ${box.read(BoxName.addWork)}' == 'addWork'
|
||||
? 'Add Work'
|
||||
: 'Work',
|
||||
? 'Add Work'.tr
|
||||
: 'Work'.tr,
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
),
|
||||
@@ -193,7 +171,7 @@ GetBuilder<MapPassengerController> formSearchPlacesDestenation() {
|
||||
controller.changePickerShown();
|
||||
}));
|
||||
},
|
||||
onTap: () {
|
||||
onTap: () async {
|
||||
if (box.read(BoxName.addHome) == 'addHome') {
|
||||
controller.homeLocationFromMap = true;
|
||||
controller.changeMainBottomMenuMap();
|
||||
@@ -211,7 +189,7 @@ GetBuilder<MapPassengerController> formSearchPlacesDestenation() {
|
||||
controller.changeMainBottomMenuMap();
|
||||
|
||||
// controller.newMyLocation = latLng;
|
||||
controller.getMap(
|
||||
await controller.getMap(
|
||||
'${controller.passengerLocation.latitude},${controller.passengerLocation.longitude}',
|
||||
'${latLng.latitude},${latLng.longitude}',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user