network_connectivity_bridge 0.1.2 copy "network_connectivity_bridge: ^0.1.2" to clipboard
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
1
likes
160
points
107
downloads

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

connectivity_plus, flutter, flutter_web_plugins, plugin_platform_interface, web

More

Packages that depend on network_connectivity_bridge