Search packages, repositories and app categories

Package detailsv14.1.2

geolocator

Geolocation plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API for generic location (GPS etc.) functions.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
3M
Likes
6.1K
Pub points
160

Install package

flutter pub add geolocator

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The geolocator package is a cross-platform Flutter plugin that provides a unified API for accessing device location services across Android, iOS, Web, macOS, Windows, and Linux. It enables developers to retrieve current location, monitor location changes, and check location permissions with consistent behavior across platforms. Built by Baseflow, it simplifies integration of GPS and other location-based features into Flutter applications.

Use cases

  • Fetching user's current location
  • Monitoring real-time location updates
  • Checking location permissions
  • Building location-aware apps
  • Integrating with maps and navigation

Key features

  • Cross-platform compatibility
  • Real-time location tracking
  • Permission handling
  • High accuracy mode support
  • Background location updates

Suitable for

  • Mobile and desktop location apps
  • Delivery and ride-sharing apps
  • Fitness and outdoor tracking apps
  • Location-based notifications
  • Map-integrated applications

Considerations

  • Requires proper permission configuration
  • Background location may impact battery life
  • Accuracy depends on device hardware
  • Web support limited to browser geolocation
  • iOS requires usage description in Info.plist

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Flutter geolocator plugin

The Flutter geolocator plugin is built following the federated plugin architecture. A detailed explanation of the federated plugin concept can be found in the Flutter documentation. This means the geolocator plugin is separated into the following packages:

  1. geolocator: the app facing package. This is the package users depend on to use the plugin in their project. For details on how to use the geolocator plugin you can refer to its README.md file.
  2. geolocator_android: this package contains the endorsed Android implementation of the geolocator_platform_interface and adds Android support to the geolocator app facing package. More information can be found in its README.md file;
  3. geolocator_apple: this package contains the endorsed iOS and macOS implementations of the geolocator_platform_interface and adds iOS and macOS support to the geolocator app facing package. More information can be found in its README.md file;
  4. geolocator_web: this package contains the endorsed web implementation of the geolocator_platform_interface and adds web support to the geolocator app facing package. More information can be found in its README.md file;
  5. geolocator_windows: this package contains the endorsed Windows implementation of the geolocator_platform_interface and adds Windows support to the geolocator app facing package. More information can be found in its README.md file;
  6. geolocator_platform_interface: this package declares the interface which all platform packages must implement to support the app-facing package. Instructions on how to implement a platform package can be found in the README.md of the geolocator_platform_interface package.

Categories

Dependencies

Dependency list 6 items

  • geolocator_android^5.1.0
  • geolocator_apple^2.3.14
  • geolocator_linux^0.2.6
  • geolocator_platform_interface^4.4.0
  • geolocator_web^4.1.4
  • geolocator_windows^0.2.3

Source repository

Projects using this package

Rankings