This commit is contained in:
Hamza-Ayed
2024-05-31 12:13:19 +03:00
parent efec9eb6a2
commit 794bc8fb24
5 changed files with 130 additions and 36 deletions

View File

@@ -56,7 +56,7 @@ class MainBottomMenuMap extends StatelessWidget {
child: controller.isPickerShown
? clickPointPosition(
controller, context)
: whereWidgetsmall(controller),
: whereWidgetSmall(controller),
),
)),
),
@@ -122,16 +122,17 @@ class MainBottomMenuMap extends StatelessWidget {
// Get.back();
// controller.showBottomSheet1();
// }),
TextButton(
onPressed: () {
controller.changeMainBottomMenuMap();
controller.changeWayPointSheet();
},
child: Text(
"If you want add stop click here".tr,
style: AppStyle.title,
),
),
//todo If you want add stop click here
// TextButton(
// onPressed: () {
// controller.changeMainBottomMenuMap();
// controller.changeWayPointSheet();
// },
// child: Text(
// "If you want add stop click here".tr,
// style: AppStyle.title,
// ),
// ),
],
)
],
@@ -169,6 +170,7 @@ class MainBottomMenuMap extends StatelessWidget {
confirm: MyElevatedButton(
title: 'Yes'.tr,
onPressed: () async {
Get.back();
await controller.getLocation();
await controller.getMap(
'${controller.passengerLocation.latitude},${controller.passengerLocation.longitude}',
@@ -178,7 +180,6 @@ class MainBottomMenuMap extends StatelessWidget {
controller.showBottomSheet1();
// controller.showBottomSheet1();
Get.back();
},
));
},
@@ -312,7 +313,7 @@ class MainBottomMenuMap extends StatelessWidget {
);
}
Row whereWidgetsmall(MapPassengerController controller) {
Row whereWidgetSmall(MapPassengerController controller) {
return Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
@@ -367,8 +368,8 @@ class MainBottomMenuMap extends StatelessWidget {
}
}
class FavioratePlacesDialogu extends StatelessWidget {
const FavioratePlacesDialogu({
class FaviouratePlacesDialog extends StatelessWidget {
const FaviouratePlacesDialog({
super.key,
});