From 9eb60bf3586683c50e4ad9e9a205c801d75a09d4 Mon Sep 17 00:00:00 2001 From: Sara <sarasdj@stud.ntnu.no> Date: Thu, 16 May 2024 11:29:49 +0200 Subject: [PATCH] add:license agreement --- app/lib/widgets/main_layout.dart | 40 +++----------------------------- 1 file changed, 3 insertions(+), 37 deletions(-) diff --git a/app/lib/widgets/main_layout.dart b/app/lib/widgets/main_layout.dart index c861d424..5ca6eda5 100644 --- a/app/lib/widgets/main_layout.dart +++ b/app/lib/widgets/main_layout.dart @@ -36,10 +36,9 @@ class _MapContainerWidgetState extends State<MapContainerWidget> { bool isMinimized = true; // Quick view box state tacker bool satLayer = false; // Satellite layer visibility state bool osmLayer = false; // OSM layer visibility state - bool isSatTapped = false; // Satellite button tap state tracker - bool isMapTapped = false; // OSM button tap state tracker - bool infoLayer = false; // Additional color information visibility - bool centerMap = false; // Map centering button state tracker + bool isSatTapped = false; // Satellite button tap state tracker + bool isMapTapped = false; // OSM button tap state tracker + bool infoLayer = false; // Additional color information visibility // Initialise selected measurement to arbitrary value Measurement? selectedMeasurement = selectedMeasurements[0]; @@ -230,39 +229,6 @@ class _MapContainerWidgetState extends State<MapContainerWidget> { ), ), ), - Positioned( // Recenter map button - top: 130, - right: 10, - child: GestureDetector( - onTapDown: (_) { - setState(() { - centerMap = true; - }); - }, - onTapUp: (_) { - setState(() { - centerMap = false; - _choroplethMapKey.currentState?.resetZoom(); - }); - }, - onTapCancel: () { - setState(() { - centerMap = false; - }); - }, - child: Container( - padding: const EdgeInsets.all(8), - decoration: centerMap ? const BoxDecoration( // Add decoration only while pressed - shape: BoxShape.circle, - color: Colors.grey, - ) : null, - child: const Icon( - Icons.center_focus_strong, - color: Colors.white54, - ), - ), - ), - ), Positioned( // Color info layer button top: 170, right: 10, -- GitLab