Overview
ConnectivityWrapper is a Flutter package that provides network-aware widgets to help apps respond dynamically to connectivity changes. It enables developers to display appropriate UI feedback when the device is offline or has no internet connection. The package wraps content in a widget tree that monitors network status and triggers visual updates based on current connectivity, improving user experience during network fluctuations. It supports multiple platforms including Android, iOS, macOS, Windows, and Linux.
Use cases
- Displaying offline banners
- Showing loading states during connectivity loss
- Providing feedback for network-dependent actions
- Handling API calls with network awareness
- Improving UX during intermittent connections
Key features
- Real-time network status monitoring
- Customizable offline UI
- Automatic reconnection detection
- Cross-platform support
- Simple integration with existing widgets
Suitable for
- Apps requiring real-time network feedback
- Developers building robust offline experiences
- Projects with frequent API interactions
- Mobile and desktop applications
- UX-focused app development
Considerations
- Requires internet permission on Android
- May need additional error handling
- Not suitable for background network checks
- Limited to UI-level connectivity feedback
- Depends on underlying connectivity plugins
