geoip_api 1.0.3
geoip_api: ^1.0.3 copied to clipboard
A lightweight Flutter/Dart package to fetch geolocation and IP address information.
🌍 GeoIP API - Flutter Package #
A lightweight Flutter/Dart package to fetch geolocation and IP address information using api.geoipapi.com.
✨ Features #
- Get user's public IP address
- Get full geolocation details including:
- IP, country, city, state, ZIP
- Latitude & longitude
- ASN (Autonomous System Number) info
- Timezone, currency, and more
📦 Installation #
In the pubspec.yaml
of your flutter project, add the following dependency:
dependencies:
...
geoip_api: <latest_version>
In your library add the following import:
import 'package:geoip_api/geoip_api.dart';