If you are using hot restart or hot reload, it won't do the trick. Since Flutter has to inject plugin dependencies into the platform-specific parts of your app, hot restart/hot reload is not enough to trigger the injection. Check this issue for more.
https://github.com/Baseflow/flutter-geolocator/issues/416
Close the app and execute `flutter run` command.
If you are using hot restart or hot reload, it won't do the trick.
Since Flutter has to inject plugin dependencies into the platform-specific parts of your app, hot restart/hot reload is not enough to trigger the injection.
Check this [issue][1] for more.
Close the app and execute `flutter run` command.
[1]: https://github.com/flutter/flutter/issues/10912