Skip to content
Snippets Groups Projects
Commit 48339c4b authored by Sara Savanovic Djordjevic's avatar Sara Savanovic Djordjevic
Browse files

update: remove print

parent 10f5e549
No related branches found
No related tags found
No related merge requests found
...@@ -66,12 +66,9 @@ class _MapContainerWidgetState extends State<MapContainerWidget> { ...@@ -66,12 +66,9 @@ class _MapContainerWidgetState extends State<MapContainerWidget> {
setState(() { setState(() {
selectedMarker = markerTemplate; selectedMarker = markerTemplate;
}); });
// NB: temporary print
print('Icon tapped: ${selectedMarker?.size}');
}, },
child: Image.asset( child: Image.asset(
'assets/icons/circle-red.png', 'assets/icons/circle-red.png',
// Path to your custom icon asset
color: markerTemplate.color, color: markerTemplate.color,
width: markerTemplate.size, width: markerTemplate.size,
height: markerTemplate.size, height: markerTemplate.size,
...@@ -104,7 +101,7 @@ class _MapContainerWidgetState extends State<MapContainerWidget> { ...@@ -104,7 +101,7 @@ class _MapContainerWidgetState extends State<MapContainerWidget> {
child: GestureDetector( child: GestureDetector(
onTap: () { onTap: () {
setState(() { setState(() {
selectedMarker = null; // Clear the selected marker selectedMarker = null;
}); });
}, },
child: const Icon(Icons.close), child: const Icon(Icons.close),
...@@ -137,11 +134,11 @@ class _MapContainerWidgetState extends State<MapContainerWidget> { ...@@ -137,11 +134,11 @@ class _MapContainerWidgetState extends State<MapContainerWidget> {
style: titleStyle, style: titleStyle,
), ),
Text( Text(
'Latitude: ${selectedMarker?.geoData.latitude}', 'Safety level: ${selectedMarker?.geoData.safetyLevel}',
style: regTextStyle, style: regTextStyle,
), ),
Text( Text(
'Longitude: ${selectedMarker?.geoData.longitude}', 'Location: (${selectedMarker?.geoData.latitude},${selectedMarker?.geoData.longitude})',
style: regTextStyle, style: regTextStyle,
), ),
const SizedBox(height: contPadding), const SizedBox(height: contPadding),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment