device_geolocation 1.1.0
device_geolocation: ^1.1.0 copied to clipboard
Cross-platform Flutter geolocation plugin (Android, iOS, macOS, Web, Windows, Linux).
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add device_geolocationThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
device_geolocation: ^1.1.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:device_geolocation/device_geolocation.dart';