dart_ipify
1.1.1, released 5 years ago by an unverified publisher
Fetch public IP address and geolocation data via the ipify service.
WASM-ready
What it does
The package calls ipify's REST endpoints to return your IPv4/IPv6 address or detailed location info for any IP. It wraps the HTTP calls in simple static methods.
AI-written summary of version 1.1.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to quickly obtain the device's public IP address.
- You need basic geolocation lookup for an IP without integrating a full mapping SDK.
Skip it when
- You require high‑frequency or bulk IP lookups (rate‑limited by ipify).
- You need offline IP resolution or advanced location analytics.
Strengths
- Very small API surface – just a few async methods.
- Works on all major Flutter platforms (mobile, web, desktop).
- Null‑safe and actively maintained.
Weaknesses
- Limited to ipify’s free tier and features.
- No built‑in caching or retry logic.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
import 'package:dart_ipify/dart_ipify.dart';
void main() async {
final ip = await Ipify.ipv4();
print('Public IPv4: $ip');
final geo = await Ipify.geo('YOUR_API_KEY');
print('Location: ${geo.location}');
}Alternatives
Packages that do the same job and could replace dart_ipify.