Overview
A Flutter package that checks the current network connection status on Android and iOS devices. It returns a boolean value: true if the device is connected to the internet, false otherwise. Designed for simple integration, it helps apps determine connectivity state to manage user experience or data operations accordingly. The package is lightweight and focused solely on network status detection without additional features.
Use cases
- Checking internet availability before API calls
- Displaying network status in UI components
- Enabling offline mode based on connectivity
- Preventing data sync when offline
- Handling network-dependent features
Key features
- Cross-platform support for Android and iOS
- Simple boolean return for connection status
- Lightweight and minimal dependencies
- Easy integration via pub add
- Real-time connectivity monitoring
Suitable for
- Apps requiring basic network checks
- Offline-capable applications
- Network-aware UI elements
- Simple connectivity validation
- Development teams seeking minimal network packages
Considerations
- Does not provide detailed network quality metrics
- No built-in retry mechanisms for failed connections
- Limited to connectivity status, not network type (Wi-Fi vs mobile)
- Requires manual handling of connection change events
- No support for web platform as per available data