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,