Overview
A lightweight Flutter package that enables simple detection of internet connectivity status on multiple platforms. It provides a straightforward way to check if the device is connected to the internet and offers a stream to listen for real-time changes in connection status. Ideal for apps needing reliable network state monitoring without complex setup. The package supports Android, iOS, macOS, Windows, and Linux, making it versatile for cross-platform development.
Use cases
- Checking internet connectivity before API calls
- Monitoring network status changes in real time
- Ensuring offline mode handling
- Displaying network status indicators
- Validating user actions based on connectivity
- Preventing failed requests during poor network conditions
Key features
- Simple API for connectivity checks
- Stream-based connection status listening
- Cross-platform support
- Lightweight and easy to integrate
- Real-time updates on connection changes
- No additional dependencies
Suitable for
- Basic connectivity monitoring
- Apps requiring network awareness
- Developers seeking minimal setup
- Cross-platform mobile and desktop apps
- Projects with limited network logic
- Prototypes and quick implementations
Considerations
- Does not handle Wi-Fi vs cellular distinction
- Limited to online/offline state only
- No built-in retry mechanisms
- Relies on system-level connectivity APIs
- May require permission handling on some platforms
- Not suitable for advanced network diagnostics
