The geolocator package is the app-facing Flutter plugin for reading device location. It uses separate endorsed packages per platform behind one shared API.
Overview
Flutter Geolocator is a location plugin structured as a federated Flutter package. Application code depends on the main geolocator package, which routes calls to platform implementations registered at build time.
The architecture splits responsibilities across an app-facing module, Android, Apple (iOS and macOS), web, and Windows implementation packages, plus a platform interface package that defines the contract each native side must fulfill. That layout matches Flutter's documented federated plugin pattern.
Consumers integrate the primary package into their Flutter project and call its public location API. Deeper behavior, permissions, and setup notes are maintained alongside each platform implementation rather than only in a single top-level overview.
It functions as an Android and iOS geolocation plugin in typical use, while the federated layout also supplies macOS, web, and Windows implementation packages that expose the same surface API.
Key features
- Federated plugin layout
- Single app-facing API package
- Android implementation package
- Apple iOS and macOS support
- Web implementation package
- Windows implementation package
- Shared platform interface contract
Use cases
- Current device position in Flutter apps
- Location-aware mobile features
- Cross-platform geolocation access
- Maps or check-in workflows
- Platform-specific location plugins