i am using geolocator in flutter project to get current location but this error come on it. i added all dependencies in both ios and android files still get this error i dont know why flutter channel stable, 2.12,
here is my code:
Position position = await Geolocato.getCurrentPosition( desiredAccuracy: LocationAccuracy.high);
here is my error coming which i tested android 10, 8 also, but answer same
Unhandled Exception: MissingPluginException(No implementation found for method getCurrentPosition on channel flutter.baseflow.com/geolocator)
i am using geolocator plugin here is plugin link :https://pub.dev/packages/geolocator
flutter clean
and rebuild you app. Hopefully it will work fine – Cenobite