flutter_network_capabilities
0.0.3, released 5 months ago by nubank.dev
Monitors network capabilities like bandwidth and signal strength on Android and iOS.
What it does
Provides runtime information about the current network such as upstream/downstream bandwidth, signal strength, and transport type. Works on Android (API 29+) and iOS, exposing the data through a simple Dart API.
AI-written summary of version 0.0.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to adapt UI or logic based on actual network quality
- Debugging or logging real‑time network characteristics
- Building apps that react to changes in Wi‑Fi vs cellular connectivity
Skip it when
- You only need high‑level connectivity status (online/offline)
- You require cross‑platform networking without native code
- You need extensive streaming or bandwidth management features
Strengths
- Exposes detailed low‑level network metrics
- Supports both Android and iOS platforms
- Handles iOS main‑thread blocking issue
Weaknesses
- Limited to Android Q+ for full feature set
- iOS support provides only basic info
- Requires native configuration and permissions
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 1
Add required permissions (e.g., ACCESS_NETWORK_STATE) to AndroidManifest.xml and appropriate keys to iOS Info.plist; ensure the plugin is registered in the host app.
FlutterNetworkCapabilities flutterNetworkCapabilitiesPlugin = FlutterNetworkCapabilities();
final info = await flutterNetworkCapabilitiesPlugin.getNetworkInfo();
debugPrint(info);Alternatives
Packages that do the same job and could replace flutter_network_capabilities.
- wakelock_plus
Keep the device screen awake across mobile, desktop, and web platforms.
92Compare - nordic_dfu
Perform Device Firmware Updates on Nordic nRF51 and nRF52 chips.
85Compare - connectivity_wrapper
Provides network-aware widgets and connectivity feedback for Flutter applications.
83Compare - plugin_wifi_connect
Connects mobile devices to Wi-Fi networks using a specific SSID or SSID prefix.
77Compare
Works with
Packages commonly used together with flutter_network_capabilities: ones it builds on, ones built on it, and its own family.