onelocate
Introducing our innovative geo locate detection plugin called OneLocate, a powerful tool that allows you to check current location coordinates without GPS, Only need internet access only.
Features
- GRS not required
- Only internet
Getting started
To use this package, add oneroot as a dependency in your pubspec.yaml file.
Usage
- On pubspeck.yaml
onelocate: ^0.0.2
- On Dart Import
import 'package:onelocate/onelocate.dart';
- On implementation of OneLocate
//init plugin object
final _onelocatePlugin = Onelocate();
//Method will return location info as a dynamic map value.
//This is a set of properties that can access,
{
"country": "",
"countryCode": "",
"city": "",
"zip": "",
"lat": "",
"lon": "",
}
var platformRootStatus = await _onerootPlugin.getLocation();
//Method will return the OS version.
String platformVersion = await _onerootPlugin.getPlatformVersion();
- Platform configs
Android - AndroidManifest | IOS - info.plist |
↑ Blank line!
↓ Blank line! |
↑ Blank line!
↓ Blank line! |
One Locate - Android | One Locate - IOS |
-
See also from Developer