Skip to content
pubscout

connectivity_plus

7.3.2, released 7 weeks ago by fluttercommunity.dev

Discover the state of network connectivity (WiFi, mobile, ethernet) on Android, iOS, Web and desktops.

Flutter FavoriteWASM-readyRock solid
$ flutter pub add connectivity_plus
Source repository

What it does

Allows Flutter applications to check the current network connectivity status and listen to connection changes in real-time. It supports various connection types such as mobile, Wi-Fi, ethernet, VPN, bluetooth, and satellite across multiple platforms.

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

Use it when

  • You need to detect if the device is connected to Wi-Fi, cellular, or other networks
  • Your app needs to react to network connection state changes via a stream

Skip it when

  • You are relying solely on connectivity status to guarantee actual internet access or reachability
  • You need detailed Wi-Fi SSID or MAC address details on platforms where privacy restrictions block it

Strengths

  • Cross-platform support including Android, iOS, Web, macOS, Windows, and Linux
  • Provides both a one-time check and a real-time event stream
  • Flutter favorite package with regular updates

Weaknesses

  • Connection type availability does not guarantee actual internet access
  • Web implementation has browser limitations and relies on experimental APIs or fallback to online status
  • Background connectivity changes are not communicated on Android O and above

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
5

Requires minimum Flutter >=3.19.0, Dart >=3.3.0, iOS >=13.0, macOS >=10.15, and Java 17.

import 'package:connectivity_plus/connectivity_plus.dart';

final List<ConnectivityResult> connectivityResult = await (Connectivity().checkConnectivity());
if (connectivityResult.hasConnectivity) {
  // Connectivity available
}

Alternatives

Packages that do the same job and could replace connectivity_plus.

Works with

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