Skip to content
pubscout

flutter_network_connectivity

0.0.6, released 5 years ago by livelifedev.com

Check for live network connectivity status on Android and iOS.

$ flutter pub add flutter_network_connectivity
Source repository

What it does

A Flutter plugin that checks for internet availability and network connectivity status. It supports stream-based observation, periodic interval checks, and on-demand queries using NetworkCapabilities on Android and NetworkMonitor on iOS.

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

Use it when

  • You need to listen to live internet availability changes as a stream.
  • You need to perform periodic network connectivity checks with a custom duration.
  • You need to verify internet connection on call.

Skip it when

  • You prefer using more standard community packages like connectivity_plus.
  • You do not need native network status capabilities.

Strengths

  • Provides both stream-based updates and on-call checks.
  • Allows custom lookup URLs and periodic intervals.
  • Native support for Android NetworkCapabilities and iOS NetworkMonitor.

Weaknesses

  • Very early version (0.0.6) with limited ecosystem adoption.
  • Requires manual setup of Android permissions and minimum SDK versions.

Setup

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

For Android, add INTERNET and ACCESS_NETWORK_STATE permissions to the manifest. Minimum SDK version is 16. For iOS, minimum required version is 12.0.

FlutterNetworkConnectivity flutterNetworkConnectivity = FlutterNetworkConnectivity();
bool _isNetworkConnectedOnCall = await flutterNetworkConnectivity.isInternetConnectionAvailable();

Alternatives

Packages that do the same job and could replace flutter_network_connectivity.

  • connectivity_plus

    It is the official and more widely adopted community standard for checking connectivity status across multiple platforms.