location_platform_interface

v4.0.0

A common platform interface for the location plugin.

Архив пакета: https://pubdev.letsnova.ru/api/archives/location_platform_interface/4.0.0.tar.gz

Установкаdart pub add location_platform_interface

README

location_platform_interface

A common platform interface for the location plugin.

This interface allows platform-specific implementations of the location plugin, as well as the plugin itself, to ensure they are supporting the same interface.

Usage

To implement a new platform-specific implementation of location, extend LocationPlatform with an implementation that performs the platform-specific behavior, and when you register your plugin, set the default LocationPlatform by calling LocationPlatform.instance = MyLocation().

Note on breaking changes

Strongly prefer non-breaking changes (such as adding a method to the interface) over breaking changes for this package.

See https://flutter.dev/go/platform-interface-breaking-changes for a discussion on why a less-clean interface is preferable to a breaking change.

История изменений

4.0.0

  • Bump minimum Dart version to 3.1, minimum Flutter version to 3.16
  • Bump dependencies

3.1.2

  • Fix cast error in Location.changeNotificationOptions() (#877)

3.1.1

  • Fix cast error in Location.onLocationChanged (#871)

3.1.0

  • Refactoring (#853)
    • Set up code formatting & linting on CI
    • Remove unused dependency on package:meta
    • Bump minimum Flutter to 3.3

3.0.0

  • Bump minimum Flutter to 3.0 (#847)

2.3.0

  • FIX: add platform tests.
  • FIX: fix tests.
  • FEAT: improve coverage.

2.2.0

  • FIX: fix the depreciation warning on android #550.
  • FEAT: add several information to resolve #552.
  • FEAT: improve LocationData doc.
  • FEAT: improve example app.
  • FEAT: add isMock information on LocationData.
  • FEAT: add fallback for LocationAccuracy.reduced on Android.
  • FEAT: add option to reopen app from notification.
  • FEAT: allow for customizing Android notification text, subtext and color.
  • FEAT: allow for customizing Android background notification from dart.
  • DOCS: update readme web.
  • CHORE: publish packages.
  • CHORE: publish packages.
  • CHORE: publish packages.

2.1.0

  • FEAT: add option to reopen app from notification.
  • FEAT: allow for customizing Android notification text, subtext and color.
  • FEAT: allow for customizing Android background notification from dart.

2.0.1

  • DOCS: update readme web.
  • CHORE: publish packages.

2.0.0

  • FEAT: Update to null safety.
  • Update to null safety and Melos

[1.1.0] - 07th December 2020

  • Add new interface method enableBackgroundMode(boolean) to control weather plugin should work in the background or not.

[1.0.1] - 24th August 2020

  • Add grantedLimited enum value to PermissionStatus to capture the new limited range authorization that iOS 14 is offering.

[1.0.0] - 26th March 2020

  • Created the platform interface of the Location plugin in order to support Web and macOS (huge thanks to long1eu)