Issue I have the following flutter dart code which uses the geolocator package. Position? _position; void _getCurrentLocation() async { showDialog( context: context, builder: (context) { return const Center(child: CircularProgressIndicator()); }); Position position = await _determinePosition(); if (!mounted) return; setState(() {
Continue readingTag: geolocator
What is the difference between getCurrentPosition and PositionStream geolocator flutzer
Issue I am using the geolocator package in my flutter app and I have some understanding issue. GetCurrentPosition gives back the device current position and PositionStream updates the device location continuously. So what is the difference between the two. Can
Continue readingflutter – LateInitializationError: Field 'currentPosition' has not been initialized
Issue import ‘package:flutter/material.dart’; import ‘package:geolocator/geolocator.dart’; import ‘package:kakao_map_plugin/kakao_map_plugin.dart’; class MapPage extends StatefulWidget { const MapPage({Key? key}) : super(key: key); @override State<MapPage> createState() => _MapPageState(); } class _MapPageState extends State<MapPage> { late Position? currentPosition; late KakaoMapController _mapController; @override void initState() { super.initState();
Continue readingGeolocator package not working in Flutter
Issue has any one of you worked with the geolocator package? if yes then can you please help. I have done all the steps mentioned in the docs of the geolocator package excluding the androidx conversion I think the error
Continue readingUsing geolocator GPS stream with Riverpod StreamProvider
Issue I’m wrestling with using the streaming GPS feature (StreamSubscription) of the geolocator package with the StreamProvider function of Riverpod in order have a global variable that has constantly updated user GPS coordinates. Using the geolocator package I am able
Continue readingGetx oninit dont replace values – Geolocator
Issue I was testing a code on my Android device but in the replacement part of the code in the terminal it prints the previous values and not the values changed in the getPosition(). CODE WITH GEOLOCATOR import ‘package:geolocator/geolocator.dart’; import
Continue readingFlutter Geolocator 9.0.2 Not Working on Android Emulator
Issue I am using the flutter Map and I want to get the device location using the geolocator package but it is not working. This works perfectly well on Windows(desktop) and Chrome/Edge web. However, it won’t work on Android Emulator.
Continue readinggetCurrentPosition not returning location with airplane Mode ON
Issue Plugin geolocator: ^9.0.1 with flight off mode works well, Not getting location /throwing any error if flight mode is on. I need to get location even in airplane mode Kindly suggest changes or other plugin with this feature Tried
Continue readingFlutter – Geolocator package is not calling Geolocator.getCurrentPosition() more than once
Issue As the title says, I’m not being able to call Geolocator.getCurrentPosition() more than once. I have logged the issue with the package team, but I’m wondering if it’s something I’m doing wrong. Future getLocation() async { var currentLocation; try
Continue readingflutter geolocator package not returning the longitude and latitude values
Issue I am using the flutter geolocator package to get a device’s current location. but, it is not returning the location and sends null values instead of longitude and latitude. I have linked all the codes related to location access
Continue reading