get front end to work
This commit is contained in:
parent
879ab82cae
commit
08ea09a347
2 changed files with 5 additions and 1 deletions
|
|
@ -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" />
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue