internet_connectivity_checker
1.0.2, released 3 years ago by moustapha.dev
Manage widgets dynamically based on actual internet access.
What it does
Checks if the device has an actual connection to the internet rather than just network status. Provides a ConnectivityBuilder widget and a stream to easily handle online, offline, and checking states.
AI-written summary of version 1.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to verify true internet access instead of just local network connectivity
- You want to dynamically render online/offline widgets using a simple builder
Skip it when
- You only need local network or connection type information without pinging the internet
Strengths
- Provides a convenient ConnectivityBuilder widget
- Exposes a Dart stream for custom logic
- Configurable polling interval
Weaknesses
- Relies on polling at regular time intervals rather than push-based native events
- Limited documentation on fallback/ping targets
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
ConnectivityBuilder(
builder: (status) {
bool connected = status == ConnectivityStatus.online;
return Text(connected ? "Online" : "Offline");
},
)Alternatives
Packages that do the same job and could replace internet_connectivity_checker.
- connectivity_plus
Provides comprehensive connectivity status for Wi-Fi, cellular, etc., across platforms.
97Compare