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.
- GRS not required
- Only internet
To use this package, add oneroot as a dependency in your pubspec.yaml file.
- On pubspeck.yaml
onelocate: ^0.0.3
- 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! <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.akurupela.onelocate">
<uses-permission android:name="android.permission.INTERNET" />
</manifest> ↓ Blank line! |
↑ Blank line!
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
</plist> ↓ Blank line! |
One Locate - Android | One Locate - IOS |
![]() |
![]() |
-
See also from Developer