Checks whether a Dart or Flutter app can actually reach the internet, and detects slow connections.
open sourceBSD-3-Clausefree
internet_connection_checker is a Dart and Flutter library that checks for a working internet connection by trying to reach a set of addresses, its defaults or your own backend's, rather than only checking that a network interface is up. It streams connection changes, can detect slow connections, and runs on Android, iOS, macOS, web, Linux and Windows.
Problems it solves
- my Flutter app says it's online when the Wi-Fi has no internet
- refresh a page automatically when the device gets its internet connection back
- warn users in my Flutter app when their connection is slow
Features
- checks reachability of default or custom addresses
- stream of internet connection status changes
- slow internet connection detection
- option to require every address to respond
- Android, iOS, macOS, web, Linux and Windows
Limitations
- The checker instance has to be disposed of when it's no longer needed, or it leaks memory.1
Alternatives
The same job
These do what internet_connection_checker does.
- connectivity_plus Flutter plugin for checking network connectivity (Wi-Fi, mobile, Ethernet, VPN)