Overview
connectivity_plus is a Flutter plugin that enables apps to detect and respond to network connectivity changes on Android, iOS, Web, macOS, Windows, and Linux. It provides real-time information about the type of active connection—such as WiFi, mobile data, or no connection—allowing developers to build resilient applications that adapt to network availability. The package offers a simple, consistent API across platforms, making it ideal for handling offline scenarios, syncing data, or showing network status indicators.
Use cases
- Monitoring network status in real time
- Handling offline modes gracefully
- Displaying connection indicators
- Automatically retrying failed requests
- Optimizing data usage based on connection type
Key features
- Cross-platform support (Android, iOS, Web, macOS, Windows, Linux)
- Real-time connectivity state updates
- Detection of WiFi and mobile data connections
- Support for both initial state and stream-based monitoring
- Simple, intuitive API with minimal setup
Suitable for
- Apps requiring reliable network awareness
- Offline-capable applications
- Data-intensive services needing connection context
- Developers targeting multiple platforms with consistent behavior
Considerations
- Requires platform-specific permissions on Android and iOS
- Web support may have limitations depending on browser
- Does not detect internet access—only local connectivity
- May require additional logic to verify actual internet reachability