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

update: padding to quick box, and icon to right

parent 6e8b8a9f
No related branches found
No related tags found
No related merge requests found
......@@ -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),
......
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