Overview
ConnectionNotifier is a Flutter package that monitors internet connectivity and provides real-time updates when the connection status changes. It notifies users instantly when there's no internet access, making it ideal for apps requiring reliable network awareness. The package offers simple APIs to check connection status and listen to connectivity events across multiple platforms. It supports Android, iOS, Web, macOS, Windows, and Linux, ensuring broad compatibility. Designed for ease of use, it helps developers implement robust network handling without complex setup.
Use cases
- Real-time network status monitoring
- Handling offline scenarios in apps
- Auto-retry logic for network requests
- Displaying connection status UI elements
- Ensuring data sync only when online
- Improving user experience during connectivity changes
Key features
- Instant connection change notifications
- Simple API for checking connectivity
- Cross-platform support
- Lightweight and easy integration
- Event-driven architecture
- Built-in state tracking
Suitable for
- Apps needing reliable network detection
- Developers seeking minimal setup for connectivity checks
- Projects with frequent network operations
- User-facing apps requiring clear connectivity feedback
- Teams prioritizing cross-platform consistency
Considerations
- Requires internet permission on mobile platforms
- May need additional error handling for edge cases
- Not suitable for high-frequency polling scenarios
- Limited to basic connectivity checks (no detailed network metrics)
