simple_connection_checker
0.3.4, released 2 years ago by ajomuch92.site
Check device internet connection and listen to status changes.
What it does
Simple Connection Checker allows developers to verify if a device is connected to the internet. It provides both a static method for a one-time check and a stream-based method to listen for connection status changes over time.
AI-written summary of version 0.3.4, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to quickly check if the device has an active internet connection.
- You want to listen to real-time changes in internet connectivity status.
Skip it when
- You need detailed network interface information (like Wi-Fi vs cellular details), which is not documented as a feature.
- You require a well-established official connectivity library without custom lookup mechanisms.
Strengths
- Provides a simple static method to check internet connection instantly.
- Includes a stream to listen for connection changes.
- Allows specifying a custom lookup address.
Weaknesses
- Relies on HTTP lookups which might introduce slight latency or battery overhead compared to native connectivity hooks.
- Limited documentation regarding comprehensive platform-specific nuances.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
not documented
bool isConnected = await SimpleConnectionChecker.isConnectedToInternet();Alternatives
Packages that do the same job and could replace simple_connection_checker.
- connectivity_plus
It is a more comprehensive and widely-used alternative for checking network connectivity status across platforms.
97Compare
Works with
Packages commonly used together with simple_connection_checker: ones it builds on, ones built on it, and its own family.