From 242ee6f24a3d608168277f44a3128c6780572422 Mon Sep 17 00:00:00 2001 From: Sara <sarasdj@stud.ntnu.no> Date: Mon, 12 Feb 2024 18:20:01 +0100 Subject: [PATCH] update: quick view content visible only on maximalization --- app/lib/pages/widgets/map_widget.dart | 16 ++++++++++++---- app/lib/pages/widgets/quick_view_chart.dart | 0 2 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 app/lib/pages/widgets/quick_view_chart.dart diff --git a/app/lib/pages/widgets/map_widget.dart b/app/lib/pages/widgets/map_widget.dart index aaf5c079..6cd59721 100644 --- a/app/lib/pages/widgets/map_widget.dart +++ b/app/lib/pages/widgets/map_widget.dart @@ -89,10 +89,18 @@ class _MapContainerWidgetState extends State<MapContainerWidget> { color: darkBlue, child: Stack( children: [ - Center( - child: Text( - 'Placeholder', - style: regTextStyle, + Visibility( // Content only visible when box is maximized + visible: !isMinimized, + child: Center( + child: SizedBox( + width: (screenWidth * boxWidth) / 2.3, + height: (screenWidth * boxWidth) / 2.3, + child: Text( + 'Placeholder', + style: regTextStyle, + ), + //child: YourChartWidget(), // Replace YourChartWidget with your actual chart widget + ), ), ), Positioned( diff --git a/app/lib/pages/widgets/quick_view_chart.dart b/app/lib/pages/widgets/quick_view_chart.dart new file mode 100644 index 00000000..e69de29b -- GitLab