update
This commit is contained in:
@ -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(),
|
||||
],
|
||||
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user