new_geolocation 1.0.0
new_geolocation: ^1.0.0 copied to clipboard
new_geolocation plugin for iOS and Android. Republished from InTheLoup's geolocation and now maintained.
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: ^1.0.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: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';