From d4ee25c00d77f75917039dafc1d3366596124b88 Mon Sep 17 00:00:00 2001 From: Sara <sarasdj@stud.ntnu.no> Date: Thu, 18 Apr 2024 13:35:06 +0200 Subject: [PATCH] update: add text and button to bottom sheet --- app/lib/widgets/main_layout.dart | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/app/lib/widgets/main_layout.dart b/app/lib/widgets/main_layout.dart index c88b46b5..32eac0f9 100644 --- a/app/lib/widgets/main_layout.dart +++ b/app/lib/widgets/main_layout.dart @@ -171,15 +171,30 @@ class _MapContainerWidgetState extends State<MapContainerWidget> { context: context, builder: (BuildContext context) { return SizedBox( - height: 400, + height: 200, + width: screenWidth, child: Center( - child: ElevatedButton( - child: const Text('Close'), - onPressed: () { - Navigator.pop(context); - }, + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text( + "Export ice data for $selectedLake", + style: const TextStyle(fontSize: 20), + ), + const SizedBox(height: contPadding), + ElevatedButton( + style: ButtonStyle( + backgroundColor: MaterialStateProperty.all<Color>(Colors.white24), + ), + child: const Text("Export JSON"), + onPressed: () { + Navigator.pop(context); + }, + ) + // Add more children here as needed + ], ), - ), + ), ); }, ); -- GitLab