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"/>
|
||||
</intent-filter>
|
||||
</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
|
||||
android:name="io.flutter.embedding.android.EnableImpeller"
|
||||
android:value="false" />
|
||||
|
|
|
|||
|
|
@ -23,6 +23,9 @@ class _MapScreenState extends ConsumerState<MapScreen> {
|
|||
void initState() {
|
||||
super.initState();
|
||||
_mapController = MapController();
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
ref.read(mapProvider.notifier).locateUser();
|
||||
});
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
@ -50,6 +53,7 @@ class _MapScreenState extends ConsumerState<MapScreen> {
|
|||
FlutterMap(
|
||||
mapController: _mapController,
|
||||
options: MapOptions(
|
||||
backgroundColor: Colors.transparent,
|
||||
initialCenter: mapState.center,
|
||||
initialZoom: mapState.zoom,
|
||||
minZoom: 0,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue