This commit is contained in:
Mohamed Nouffer
2022-07-21 20:42:33 +05:30
parent e32401b570
commit bca20102f3
6 changed files with 104 additions and 45 deletions

View File

@ -92,13 +92,13 @@ class _DestinationMapPageState extends State<DestinationMapPage> {
return IconButton(
onPressed: ()async {
Destination? fs = await destinationController.getDEstinationForLatLong(d.lat!, d.lon!);
print("----fsf-----${fs}");
print("-- Destination is --- ${fs!.name} ------");
if(fs != null){
if(indexController.currentFeature.length > 0) {
if(indexController.currentDestinationFeature.length > 0) {
indexController.currentDestinationFeature.clear();
}
indexController.currentDestinationFeature.add(fs);
indexController.getAction();
//indexController.getAction();
showModalBottomSheet(context: context, isScrollControlled: true,
//builder:((context) => BottomSheetWidget())
@ -141,19 +141,19 @@ class _DestinationMapPageState extends State<DestinationMapPage> {
child:
TravelMap(),
),
Positioned(
bottom: 200,
left: 10,
child: Container(
color: Colors.white,
child: Row(
children: [
Text(destinationController.gps[0]),
Text(destinationController.locationPermission[0])
],
),
)
),
// Positioned(
// bottom: 200,
// left: 10,
// child: Container(
// color: Colors.white,
// child: Row(
// children: [
// Text(destinationController.gps[0]),
// Text(destinationController.locationPermission[0])
// ],
// ),
// )
// ),
],
)
));
@ -214,12 +214,12 @@ class _DestinationMapPageState extends State<DestinationMapPage> {
// examplePopup(marker),
// ),
// ),
LocationMarkerLayerWidget(),
MarkerLayerWidget(
options: MarkerLayerOptions(
markers: getMarkers()!
),
),
LocationMarkerLayerWidget(),
],
);