1/13/1
This commit is contained in:
@@ -58,11 +58,13 @@ GetBuilder<MapPassengerController> formSearchPlaces(int index) {
|
||||
? InkWell(
|
||||
onTap: () {
|
||||
controller.startLocationFromMapAll[index] = true;
|
||||
controller.changeMainBottomMenuMap();
|
||||
Get.back();
|
||||
// controller.changeMainBottomMenuMap();
|
||||
controller.changeWayPointStopsSheet();
|
||||
controller.changePickerShown();
|
||||
},
|
||||
child: Text(
|
||||
'Choose from Map'.tr,
|
||||
'Choose from Map $index'.tr,
|
||||
style:
|
||||
AppStyle.title.copyWith(color: AppColor.blueColor),
|
||||
),
|
||||
|
||||
@@ -35,7 +35,7 @@ class PointsPageForRider extends StatelessWidget {
|
||||
children: [
|
||||
IconButton(
|
||||
onPressed: () {
|
||||
mapPassengerController.changeWayPointSheet();
|
||||
mapPassengerController.changeWayPointStopsSheet();
|
||||
},
|
||||
icon: const Icon(Icons.arrow_drop_down_circle_outlined),
|
||||
),
|
||||
@@ -45,15 +45,18 @@ class PointsPageForRider extends StatelessWidget {
|
||||
ElevatedButton(
|
||||
onPressed: () {
|
||||
wayPointController.addWayPoints();
|
||||
controller.isWayPointStopsSheetUtilGetMap = true;
|
||||
},
|
||||
child: const Text('Add Text Field'),
|
||||
child: const Text('Add Stops'),
|
||||
),
|
||||
wayPointController.wayPoints.length > 1
|
||||
? ElevatedButton(
|
||||
onPressed: () {
|
||||
print(mapPassengerController.placesCoordinate
|
||||
.toString());
|
||||
|
||||
controller.clearPolyline();
|
||||
controller.isWayPointStopsSheetUtilGetMap =
|
||||
false;
|
||||
for (var i = 0;
|
||||
i < wayPointController.wayPoints.length;
|
||||
i++) {
|
||||
@@ -127,37 +130,7 @@ class PointsPageForRider extends StatelessWidget {
|
||||
children: [
|
||||
Text(mapPassengerController
|
||||
.currentLocationStringAll[index]
|
||||
.toString())
|
||||
// index == 0
|
||||
// ? Text(
|
||||
// mapPassengerController
|
||||
// .currentLocationString0,
|
||||
// style: AppStyle.title,
|
||||
// )
|
||||
// : index == 1
|
||||
// ? Text(
|
||||
// mapPassengerController
|
||||
// .currentLocationString1,
|
||||
// style: AppStyle.title,
|
||||
// )
|
||||
// : index == 2
|
||||
// ? Text(
|
||||
// mapPassengerController
|
||||
// .currentLocationString2,
|
||||
// style: AppStyle.title,
|
||||
// )
|
||||
// : index == 3
|
||||
// ? Text(
|
||||
// mapPassengerController
|
||||
// .currentLocationString3,
|
||||
// style: AppStyle.title,
|
||||
// )
|
||||
// : Text(
|
||||
// mapPassengerController
|
||||
// .currentLocationString4,
|
||||
// style: AppStyle.title,
|
||||
// ),
|
||||
,
|
||||
.toString()),
|
||||
const Icon(
|
||||
Icons.reorder,
|
||||
size: 20,
|
||||
|
||||
Reference in New Issue
Block a user