geolocator_web

v4.1.4

Official web implementation of the geolocator plugin.

Package archive: https://pubdev.letsnova.ru/api/archives/geolocator_web/4.1.4.tar.gz

Installdart pub add geolocator_web

Readme

geolocator_web

pub package Build status style: effective dart

The official web implementation of the geolocator plugin by Baseflow.

Usage

Since version 6.2.0 of the geolocator plugin this is the endorsed web implementation. This means it will automatically be added to your dependencies when you depend on geolocator: ^6.2.0 in your applications pubspec.yaml.

More detailed instructions on using the API can be found in the README.md of the geolocator package.

Issues

Please file any issues, bugs or feature requests as an issue on our GitHub page. Commercial support is available, you can contact us at hello@baseflow.com.

Want to contribute

If you would like to contribute to the plugin (e.g. by improving the documentation, solving a bug or adding a cool new feature), please carefully review our contribution guide and send us your pull request.

Tests

Tests require being run on a browser due to the use of the dart:js_interop package:

flutter test --platform chrome

Author

This Geolocator plugin for Flutter is developed by Baseflow.

Changelog

4.1.4

  • Updates flutter_lints dependency to 6.0.0.

4.1.3

  • Bump flutter_lints to version 5.0.0

4.1.2

  • Updates dart SDK to sdk: ^3.5.0
  • Fixes analyzer issues

4.1.1

  • Exposes the WebSettings class as a public type.

4.1.0

  • Adds WebSettings class, allowing a location maximumAge to be specified.
  • Supports maximumAge parameter in getCurrentPosition and watchPosition methods.

4.0.1

  • Upgrades the package:web dependency to version 1.0.0.
  • Upgrades Dart SDK from 3.3.0 to 3.4.0 for geolocator_web.

4.0.0

BREAKING CHANGE:

  • Migrates from dart:html to package:web and dart:js_interop
  • Migrates to Dart SDK 3.3.0 and Flutter 3.16.0.

3.0.0

BREAKING CHANGE:

  • getServiceStatusStream on web returns a PlatformException i.s.o. UnimplementedError. As the concept of location service doesn't exist on the web platform.

2.2.1

  • Migrates tests to support sound null safety.

2.2.0

  • Exposes altitude accuracy field in Position object.

2.1.7

  • Mark geolocator_web as implementation of geolocator

2.1.6

  • Migrates to Dart SDK 2.15.0 and Flutter 2.8.0.

2.1.5

  • Fixes repository URL of the package.

2.1.4

  • Adds support for the LocationPermission.unableToDetermine status which is reported by the Geolocator.checkPermission() method when a browser (like Safari) doesn't support the permission API.

2.1.3

  • Updated to the latest version of the geolocator_platform_interface':4.0.0`.

2.1.2

  • Fixes a bug where the getCurrentPosition and getPositionStream methods return a timeout exception when no timeout interval is specified.

2.1.1

  • Upgrade the geolocator_platform_interface dependency to version 3.0.1.

2.1.0

  • Made changes to the implementation of the getCurrentPosition and getPositionStream method to match new platform interface.
  • Fixes issues where geolocator doesn't work on Safari due to missing implementation of query method in the browser.

2.0.6

  • Fixes a bug where the LocationAccuracy.reduced accuracy value is treated as high accuracy on web.

2.0.5

  • Ensure the requestPermission method correctly awaits the users input and not return prematurely (see issue #783).

2.0.4

  • Added an example App to demonstrate how to directly use the geolocator_web package in a Flutter application.

2.0.3

  • Implement missing isLocationServiceEnabled for web implementation (see issue #694).

2.0.2

  • Solve bug receiving same location from stream when using distantFilter (see issue #674).

2.0.1

  • Solve bug causing error when requesting permissions (see issue #673).

2.0.0

  • Stable release for null safety.

1.0.1

  • Solve bug causing error when requesting permissions (see issue #673).

1.0.0

  • Initial release of the geolocator web implementation.