get front end to work

This commit is contained in:
Shautvast 2026-04-03 17:23:36 +02:00
parent 879ab82cae
commit 08ea09a347
2 changed files with 5 additions and 1 deletions

View file

@ -29,7 +29,7 @@
<category android:name="android.intent.category.LAUNCHER"/> <category android:name="android.intent.category.LAUNCHER"/>
</intent-filter> </intent-filter>
</activity> </activity>
<!-- Disable Impeller/Vulkan — fallback to Skia/OpenGL for devices with poor Vulkan support --> <!-- Disable Impeller/Vulkan — vector_map_tiles canvas ops are incompatible with Impeller -->
<meta-data <meta-data
android:name="io.flutter.embedding.android.EnableImpeller" android:name="io.flutter.embedding.android.EnableImpeller"
android:value="false" /> android:value="false" />

View file

@ -23,6 +23,9 @@ class _MapScreenState extends ConsumerState<MapScreen> {
void initState() { void initState() {
super.initState(); super.initState();
_mapController = MapController(); _mapController = MapController();
WidgetsBinding.instance.addPostFrameCallback((_) {
ref.read(mapProvider.notifier).locateUser();
});
} }
@override @override
@ -50,6 +53,7 @@ class _MapScreenState extends ConsumerState<MapScreen> {
FlutterMap( FlutterMap(
mapController: _mapController, mapController: _mapController,
options: MapOptions( options: MapOptions(
backgroundColor: Colors.transparent,
initialCenter: mapState.center, initialCenter: mapState.center,
initialZoom: mapState.zoom, initialZoom: mapState.zoom,
minZoom: 0, minZoom: 0,