network_connectivity_bridge 0.1.2
network_connectivity_bridge: ^0.1.2 copied to clipboard
A singleton wrapper for connectivity_plus to avoid listener conflicts in plugins and apps. This ensures that both plugins and your app can listen to network status changes safely.
network_connectivity_bridge #
A singleton-based bridge over connectivity_plus to allow multiple listeners and global access to network status in a safe and conflict-free manner.
✨ Features #
- Global singleton instance for connectivity monitoring
- Prevents multiple subscriptions from conflicting
- Simple
initialize()
method to set up once at app startup - Provides a clean stream API for listening to changes
- Compatible with third-party packages also using
connectivity_plus
🚀 Getting Started #
Add the package to your pubspec.yaml
:
dependencies:
network_connectivity_bridge: ^0.1.2