Changelog and readme changed
MODIFY
geolocator/CHANGELOG.md
geolocator/CHANGELOG.md
+## 7.1.0
+- Added the locationServiceStream which fires an event if the location service of the device are disabled/enabled in the Android/iOS notification bar or in the Settings of the device.
+- Updated the `geolocator_platform_interface: 2.1.0`
+
## 7.0.3
- Android: Throw the `ActivityMissingException` when requesting permissions while the activity is not available (e.g. when the App is in the background);

MODIFY
geolocator/README.md
geolocator/README.md
@@ -190,6 +190,18 @@ StreamSubscription<Position> positionStream = Geolocator.getPositionStream(locat
});
```
+To listen for service status changes you can call the `getServiceStatusStream` to receive stream you can listen to and receive location service status updates.
+
+``` dart
+import 'package:geolocator/geolocator.dart';
+
+StreamSubscription<ServiceStatus> serviceStatusStream = Geolocator.getServiceStatusStream().listen(
+ (ServiceStatus status) {
+ print(status);
+ });
+```
+
+
To check if location services are enabled you can call the `isLocationServiceEnabled` method:
``` dart

MODIFY
geolocator/pubspec.yaml
geolocator/pubspec.yaml
name: geolocator
description: Geolocation plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API for generic location (GPS etc.) functions.
-version: 7.0.3
+version: 7.1.0
homepage: https://github.com/Baseflow/flutter-geolocator/tree/master/geolocator
environment:
@@ -11,8 +11,8 @@ dependencies:
flutter:
sdk: flutter
- geolocator_platform_interface:
- path: ../geolocator_platform_interface
+ geolocator_platform_interface: ^2.1.0
+ geolocator_web: ^2.0.1
dev_dependencies:
flutter_test:

Changelog and readme changed