diff --git a/app/lib/pages/default_page.dart b/app/lib/pages/default_page.dart index f483d54bc4792637aa6765976b2f9709393cfa21..433d223fdc2e2e9ce4980e572df55315a5965e9c 100644 --- a/app/lib/pages/default_page.dart +++ b/app/lib/pages/default_page.dart @@ -53,7 +53,7 @@ class _DefaultPageState extends State<DefaultPage> { // Load marker data from server loadMarkerList(); - // Schedule fetchMarkerTemplate to run periodically based on fetchInterval const + // Schedule fetchMarkerData to run periodically based on fetchInterval from consts const Duration interval = Duration(minutes: fetchInterval); _timer = Timer.periodic(interval, (timer) { fetchMarkerData(); @@ -72,7 +72,7 @@ class _DefaultPageState extends State<DefaultPage> { Widget build(BuildContext context) { return MaterialApp( home: Container( - decoration: const BoxDecoration( + decoration: const BoxDecoration( // Set background color gradient: LinearGradient( begin: Alignment.topCenter, end: Alignment.bottomCenter, @@ -82,10 +82,10 @@ class _DefaultPageState extends State<DefaultPage> { child: Scaffold( backgroundColor: Colors.transparent, appBar: AppBar( - title: Text('IceMap'), + title: const Text('IceMap'), ), body: ListView( - children: [ + children: [ // Add main widget MapContainerWidget(markerList: markerList), ], ), diff --git a/app/lib/pages/marker_handler/get_markers.dart b/app/lib/pages/marker_handler/get_markers.dart index 9e0e1e3bdd339bea9191e8417bcafdf9e57607a6..ebc50274eef2ba7278b48028a13a2132150a0b79 100644 --- a/app/lib/pages/marker_handler/get_markers.dart +++ b/app/lib/pages/marker_handler/get_markers.dart @@ -26,6 +26,6 @@ Future<List<Measurement>> fetchMarkerData() async { } } catch (e) { print('Error: $e'); - throw Exception('Failed to connect to the server. Please check your network connection'); + throw Exception('failed to connect to the server. Please check your network connection'); } } diff --git a/app/lib/pages/widgets/map_widget.dart b/app/lib/pages/widgets/map_widget.dart index 8e4dfa20e51c00caf35e4c2b9c8762778c7ecd9d..dc92f6de4dedc21ec21b654b1a911fab13e9a952 100644 --- a/app/lib/pages/widgets/map_widget.dart +++ b/app/lib/pages/widgets/map_widget.dart @@ -36,7 +36,7 @@ class _MapContainerWidgetState extends State<MapContainerWidget> { const SizedBox(height: contPadding), ClipRRect( borderRadius: BorderRadius.circular(20), - child: Stack( + child: Stack( // Stack quick view on top of map children: [ SizedBox( width: screenWidth * boxWidth, @@ -47,7 +47,7 @@ class _MapContainerWidgetState extends State<MapContainerWidget> { zoom: 9.0, ), children: [ - TileLayer( + TileLayer( // Map from OpenStreetMap urlTemplate: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", subdomains: const ['a', 'b', 'c'], ), @@ -55,7 +55,7 @@ class _MapContainerWidgetState extends State<MapContainerWidget> { polygons: widget.markerList.map((Measurement measurement) { return Polygon( points: measurement.cornerList.map((Corner corner) { - // Match corners to LatLng objects + // Map corners to LatLng objects return LatLng(corner.latitude, corner.longitude); }).toList(), /*onTap: () { @@ -71,7 +71,7 @@ class _MapContainerWidgetState extends State<MapContainerWidget> { ], ), ), - Positioned( + Positioned( // Quick view box layered over map bottom: 10, right: 10, child: ClipRRect( diff --git a/server/map/__pycache__/get_markers.cpython-311.pyc b/server/map/__pycache__/get_markers.cpython-311.pyc index e706d766955e872e0fdf12271d3831db44d29c99..b2a4d214c3c57af1bcef1da38d922fc819c3f74d 100644 Binary files a/server/map/__pycache__/get_markers.cpython-311.pyc and b/server/map/__pycache__/get_markers.cpython-311.pyc differ