diff --git a/app/lib/pages/widgets/map_widget.dart b/app/lib/pages/widgets/map_widget.dart index edcaacd599469211b2978212af8c0e1e2257e475..4e769c32cc4b14cd18f722324f2cf704239b4903 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),