Skip to content
pubscout

connectivity_watcher

3.2.0, released 2 months ago by thezerone.com

Monitors internet connectivity status, connection modes, and measures latency in real-time.

$ flutter pub add connectivity_watcher
Source repository

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.

Works with

Packages commonly used together with connectivity_watcher: ones it builds on, ones built on it, and its own family.