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

update: add box for map

parent 0b068d0c
No related branches found
No related tags found
1 merge request!1Server
...@@ -25,8 +25,6 @@ class App extends StatelessWidget { ...@@ -25,8 +25,6 @@ class App extends StatelessWidget {
// fetchData requests data from the update_map endpoint // fetchData requests data from the update_map endpoint
Future<void> fetchData() async { Future<void> fetchData() async {
// NB: temp test print
print("fetchData triggered!");
try { try {
// Custom HTTP client // Custom HTTP client
HttpClient client = HttpClient() HttpClient client = HttpClient()
...@@ -74,19 +72,28 @@ class _DefaultPageState extends State<DefaultPage> { ...@@ -74,19 +72,28 @@ class _DefaultPageState extends State<DefaultPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
double screenWidth = MediaQuery.of(context).size.width;
double boxWidth = 0.8;
double boxHeight = 1.2;
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
title: const Text('IceMap'), title: const Text('IceMap'),
), ),
body: const Center( body: Center(
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[ children: <Widget>[
Container(
width: screenWidth * boxWidth,
height: screenWidth * boxHeight,
color: Colors.blue, // Set the color of the box
),
SizedBox(height: 20), // Spacing between box and text
Text( Text(
'Default page', 'Default page',
style: TextStyle(fontSize: 24), style: TextStyle(fontSize: 24),
), ),
SizedBox(height: 20),
], ],
), ),
), ),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment