get_my_location 2.0.2
get_my_location: ^2.0.2 copied to clipboard
A Flutter package to easily fetch and display device location with automatic permission handling. Perfect for apps needing quick GPS access with customizable UI states.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add get_my_locationWith Flutter:
$ flutter pub add get_my_locationThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
get_my_location: ^2.0.2Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:get_my_location/get_my_location.dart';