From 08ea09a347ed94ea1ba86bb7b5202e2f21319945 Mon Sep 17 00:00:00 2001 From: Shautvast Date: Fri, 3 Apr 2026 17:23:36 +0200 Subject: [PATCH] get front end to work --- mobile/android/app/src/main/AndroidManifest.xml | 2 +- mobile/lib/features/map/presentation/screens/map_screen.dart | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mobile/android/app/src/main/AndroidManifest.xml b/mobile/android/app/src/main/AndroidManifest.xml index 4a3fdff..2124712 100644 --- a/mobile/android/app/src/main/AndroidManifest.xml +++ b/mobile/android/app/src/main/AndroidManifest.xml @@ -29,7 +29,7 @@ - + diff --git a/mobile/lib/features/map/presentation/screens/map_screen.dart b/mobile/lib/features/map/presentation/screens/map_screen.dart index fe36ccb..1a6137a 100644 --- a/mobile/lib/features/map/presentation/screens/map_screen.dart +++ b/mobile/lib/features/map/presentation/screens/map_screen.dart @@ -23,6 +23,9 @@ class _MapScreenState extends ConsumerState { void initState() { super.initState(); _mapController = MapController(); + WidgetsBinding.instance.addPostFrameCallback((_) { + ref.read(mapProvider.notifier).locateUser(); + }); } @override @@ -50,6 +53,7 @@ class _MapScreenState extends ConsumerState { FlutterMap( mapController: _mapController, options: MapOptions( + backgroundColor: Colors.transparent, initialCenter: mapState.center, initialZoom: mapState.zoom, minZoom: 0,