connectivity_control
1.2.0, released 3 weeks ago by pulkitagarwal.me
Inspects active network interfaces, internet capability, validation, metering, and bandwidth.
What it does
A Flutter plugin providing low-level, system-driven visibility into active network interfaces on a device. It allows apps to inspect multiple simultaneous networks, check internet capability, validation state, metering, and bandwidth estimates.
AI-written summary of version 1.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to know whether a connection actually has internet access (e.g., captive portal detection).
- You need to distinguish metered from unmetered connections to adapt data usage.
- You need bandwidth estimates to adjust media quality on Android.
- You need to reason about multiple simultaneous network interfaces.
Skip it when
- You need broad platform coverage across Windows, Linux, or Web.
- You only need a basic connection type check and do not require interface-level details.
Strengths
- Provides detailed inspection of multiple simultaneous network interfaces.
- Exposes internet capability, validation, and metering status across platforms.
- Offers real-time network change streams using native event-driven implementations.
Weaknesses
- Limited platform support compared to some alternatives (Android, iOS, macOS only).
- Bandwidth estimates (`downLinkKbps`, `upLinkKbps`) are only available on Android.
- VPN detection behaves differently or is not exposed as a distinct interface type on iOS and macOS.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Requires Flutter 3.44+ and Dart 3.12+. No special extra manual platform permissions are documented beyond standard plugin inclusion.
import 'package:connectivity_control/connectivity_control.dart';
final networks = await ConnectivityControl().getActiveNetworks();
print(networks);Alternatives
Packages that do the same job and could replace connectivity_control.
- connectivity_plus
Pick it if you need broader platform coverage including Windows, Linux, and Web, or only require general connection types.
97Compare
Works with
Packages commonly used together with connectivity_control: ones it builds on, ones built on it, and its own family.