From 4ff84b820dc7c448d0abca17d713c912f78e813a Mon Sep 17 00:00:00 2001
From: Sara <sarasdj@stud.ntnu.no>
Date: Mon, 12 Feb 2024 18:37:20 +0100
Subject: [PATCH] update: padding to quick box, and icon to right

---
 app/lib/pages/widgets/map_widget.dart | 26 ++++++++++----------------
 1 file changed, 10 insertions(+), 16 deletions(-)

diff --git a/app/lib/pages/widgets/map_widget.dart b/app/lib/pages/widgets/map_widget.dart
index edcaacd5..4e769c32 100644
--- a/app/lib/pages/widgets/map_widget.dart
+++ b/app/lib/pages/widgets/map_widget.dart
@@ -24,14 +24,6 @@ class _MapContainerWidgetState extends State<MapContainerWidget> {
   @override
   Widget build(BuildContext context) {
 
-    // NB: temporary test data
-    final List<FlSpot> chartData = [
-      FlSpot(0, 10),
-      FlSpot(1, 20),
-      FlSpot(2, 30),
-      FlSpot(3, 40),
-    ];
-    double barWidth = 30; // Width for bars in bar chart
     const double contPadding = 30; // Container padding space
 
     return LayoutBuilder(
@@ -86,29 +78,31 @@ class _MapContainerWidgetState extends State<MapContainerWidget> {
                       child: ClipRRect(
                         borderRadius: BorderRadius.circular(10),
                         child: Container(
-                          width: (screenWidth * boxWidth) / 2.3,
-                          height: isMinimized ? 20 : (screenWidth * boxWidth) / 2.3,
+                          width: (screenWidth * boxWidth) / 2.4,
+                          height: isMinimized ? 20 : (screenWidth * boxWidth) / 2.4,
                           color: darkBlue,
                           child: Stack(
                             children: [
                               Visibility( // Content only visible when box is maximized
                                 visible: !isMinimized && selectedMarker != null,
                                 child: Center(
-                                  child: SizedBox(
-                                    width: (screenWidth * boxWidth) / 2.3,
-                                    height: (screenWidth * boxWidth) / 2.3,
-                                    child: const QuickViewChart(),
+                                  child: Padding(
+                                    padding: const EdgeInsets.only(right: 14.0, top: 14.0),
+                                    child: SizedBox(
+                                      width: (screenWidth * boxWidth) / 2.3,
+                                      height: (screenWidth * boxWidth) / 2.3,
+                                      child: const QuickViewChart(),
+                                    ),
                                   ),
                                 ),
                               ),
                               Positioned(
                                 top: isMinimized ? 0 : 5,
-                                left: 5,
+                                right: 5,
                                 child: GestureDetector(
                                   onTap: () {
                                     setState(() {
                                       isMinimized = !isMinimized; // Toggle the minimized state
-                                      print("IsMinimized?: $isMinimized");
                                     });
                                   },
                                   child: Icon(isMinimized ? Icons.arrow_upward : Icons.arrow_downward),
-- 
GitLab