ip_hunter 1.0.2
ip_hunter: ^1.0.2 copied to clipboard
A Flutter package to retrieve the device's network IP address and fetch detailed location information, such as city, region, and country based on the connected network.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add ip_hunter
With Flutter:
$ flutter pub add ip_hunter
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
ip_hunter: ^1.0.2
Alternatively, 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:ip_hunter/ip_hunter.dart';