new_geolocation 0.2.3
new_geolocation: ^0.2.3 copied to clipboard
Republished and maintained Geolocation plugin, originally from Loup Inc. for iOS and Android. This plugin handles location services and can be used to get permission and retreive location of device.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add new_geolocationThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
new_geolocation: ^0.2.3Alternatively, 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:new_geolocation/channel/codec.dart';
import 'package:new_geolocation/channel/helper.dart';
import 'package:new_geolocation/channel/location_channel.dart';
import 'package:new_geolocation/channel/param.dart';
import 'package:new_geolocation/data/location.dart';
import 'package:new_geolocation/data/location_result.dart';
import 'package:new_geolocation/data/permission.dart';
import 'package:new_geolocation/data/result.dart';
import 'package:new_geolocation/facet_android/location.dart';
import 'package:new_geolocation/facet_android/permission.dart';
import 'package:new_geolocation/facet_android/result.dart';
import 'package:new_geolocation/facet_ios/location.dart';
import 'package:new_geolocation/facet_ios/permission.dart';
import 'package:new_geolocation/geolocation.dart';