FLUTTER ECOSYSTEM

cross_connectivity

A Flutter plugin for handling Connectivity and REAL Connection state in the mobile, web and desktop platforms. Supports iOS, Android, Web, Windows, Linux and macOS.

cross_connectivity cover
Latest version
3.3.0
30-day downloads
1.8K
Likes
128
Pub points
140

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

CrossConnectivity is a Flutter plugin that provides consistent connectivity status monitoring across mobile, web, and desktop platforms. It distinguishes between general network availability and actual real-world connection state, ensuring reliable detection of active internet access. Compatible with Android, iOS, Web, macOS, Windows, and Linux, it offers developers a unified API to handle network conditions in diverse environments. The plugin supports both Wi-Fi and cellular networks, and delivers real-time updates on connection changes.

Use cases
  • Real-time app responsiveness based on connection status
  • Offline mode handling in cross-platform apps
  • Network health monitoring for data sync operations
  • Dynamic UI updates when connectivity changes
  • Ensuring secure data transmission only over active connections
Key features
  • Supports all major platforms including web and desktop
  • Distinguishes between connectivity and real connection state
  • Real-time event emission for network changes
  • Lightweight and easy to integrate
  • Provides accurate connection type detection
Suitable for
  • Cross-platform Flutter applications
  • Apps requiring robust offline/online behavior
  • Developers targeting web and desktop alongside mobile
  • Applications needing precise network state awareness
Considerations
  • Requires platform-specific permissions on mobile
  • Web support depends on browser capabilities
  • Desktop implementations may vary slightly by OS
  • Not intended for low-level network diagnostics
  • May require additional logic for complex network scenarios
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add cross_connectivity

Categories

Dependencies

Dependency list 4 items

Source repository

Related projects

No data available yet.