Welcome to docs of the location plugin

This library aims at providing you a simple way to get the user location without thinking about permission. It's also configurable so you can achieve better performance or better battery life.

It currently supports Android, iOS, macOS, Web, Windows and Linux.

Features

  • ๐Ÿ‘จโ€๐Ÿ’ป๏ธ Easy to use
  • ๐Ÿ›ฐ Handles requesting permission and enabling GPS automatically for you
  • ๐Ÿ”‹ Highly configurable so you get the best performance / battery life for your usecase
  • ๐Ÿ” Works either with and without Google Play Services on Android phones
  • ๐Ÿƒโ€โ™‚๏ธ Background location updates
  • โญ๏ธ [Flutter Favorite]

How to use?

Start by installing Location!

Then, to get the location of your user you can simply do:

dart
final location = Location();
final locationData = await location.getLocation();
print("Location: ${locationData.latitude}, ${locationData.longitude}");