connectivity_watcher
3.2.0, released 2 months ago by thezerone.com
Monitors internet connectivity status, connection modes, and measures latency in real-time.
What it does
Combines OS-level hardware detection with active DNS reachability probes to detect exact connection modes like Wi-Fi, Mobile Data, or VPN. It provides built-in offline UI overlays, network-aware widgets, request retry logic, and an in-app network inspector.
AI-written summary of version 3.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need detailed connection mode detection beyond basic on/off states.
- Your app requires a customizable offline UI wrapper or banner.
- You want to inspect HTTP network traffic or measure live connection latency.
Skip it when
- You only need basic platform connectivity status without active reachability checks.
Strengths
- Detects connection modes like Wi-Fi, Mobile Data, Ethernet, and VPN.
- Includes prebuilt offline UI styles (Snackbar, Alert Dialog, Custom).
- Provides a built-in in-app network logs inspector and ping latency tracker.
Weaknesses
- Depends on specific external packages like dio and connectivity_plus.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
Initialize the watcher in main.dart using WidgetsFlutterBinding.ensureInitialized() and setup the wrapper at the root of the app.
WidgetsFlutterBinding.ensureInitialized();
ZoConnectivityWatcher().setUp(
checkInterval: Duration(seconds: 1)
);Alternatives
Packages that do the same job and could replace connectivity_watcher.
- internet_connection_checker_plus
Verifies actual internet connectivity by checking reachability against global endpoints.
82Compare - observe_internet_connectivity
Observe active internet connectivity changes via customizable strategies and stream/widget listeners.
68Compare - flml_internet_checker
Zero-dependency internet connectivity checker with blocking screens and banners.
67Compare - internet_connection_checker
Verifies active internet connectivity and detects slow connections by checking accessible URIs.
66Compare
Works with
Packages commonly used together with connectivity_watcher: ones it builds on, ones built on it, and its own family.