flutter_icmp_ping
3.1.3, released 3 years ago by zuvola.com
Flutter plugin that sends ICMP ECHO_REQUEST to network hosts.
What it does
Allows Flutter apps to send ICMP echo requests (pings) to network hosts on Android and iOS. Provides a stream of ping response events for tracking network latency and reachability.
AI-written summary of version 3.1.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to check host reachability via ICMP in a Flutter app
- You want to measure network latency to a specific server
Skip it when
- Targeting platforms other than Android and iOS
- You only need HTTP/HTTPS connectivity checks
Strengths
- Enables ICMP ping functionality on mobile
- Stream-based interface for easy subscription to events
- Supports configurable count, timeout, interval, and TTL
Weaknesses
- Only supports Android and iOS platforms
- Not documented for web or desktop platforms
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Add dependency to pubspec.yaml and import the package. See example directory for complete usage.
try {
final ping = Ping(
'google.com',
count: 3,
timeout: 1,
interval: 1,
ipv6: false,
ttl: 40,
);
ping.stream.listen((event) {
print(event);
});
} catch (e) {
print('error $e');
}Alternatives
Packages that do the same job and could replace flutter_icmp_ping.
- flutter_sms
A Flutter plugin to send SMS and MMS on iOS and Android.
77Compare - another_telephony
Flutter plugin to send/receive SMS, make phone calls, and retrieve network parameters on Android.
56Compare
Works with
Packages commonly used together with flutter_icmp_ping: ones it builds on, ones built on it, and its own family.