Skip to content
pubscout

cross_connectivity

3.3.0, released 2 years ago by thisismarch.dev

Flutter plugin to monitor real network connectivity across mobile, web, and desktop.

WASM-ready
$ flutter pub add cross_connectivity
Source repository

What it does

Provides streams and one‑time checks for real network connectivity. It also offers a widget builder for UI updates.

AI-written summary of version 3.3.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • Need real network status across iOS, Android, Web, Windows, Linux, macOS
  • Require stream‑based updates for UI
  • Want a single plugin for all platforms

Skip it when

  • Only need simple connectivity check
  • Need Wi‑Fi SSID or BSSID info (removed APIs)

Strengths

  • Cross‑platform support
  • Stream‑based API for reactive UI
  • Simple one‑liner usage
  • No code generation required

Weaknesses

  • Removed Wi‑Fi info APIs
  • Depends on connectivity_plus
  • Requires Flutter SDK >=3.5.0

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
4

Add dependency in pubspec, import package, no special permissions needed

import 'package:cross_connectivity/cross_connectivity.dart';

final isConnected = CrossConnectivity.isConnected;
final status = CrossConnectivity.onConnectivityChanged;

CrossConnectivity.checkConnection().then((connected) => print(connected));

Alternatives

Packages that do the same job and could replace cross_connectivity.

Works with

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