network_settings_state 0.1.6 copy "network_settings_state: ^0.1.6" to clipboard
network_settings_state: ^0.1.6 copied to clipboard

Check whether Wi-Fi and mobile data are enabled in device settings — not just which network is currently active.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.1.6 - 2026-07-23 #

Added #

  • Swift Package Manager support via ios/network_settings_state/Package.swift, silencing Flutter's "does not support Swift Package Manager" build warning. The CocoaPods podspec is retained for apps not yet migrated to SPM.

0.1.5 - 2026-07-07 #

Fixed #

  • Fixed (iOS): isWifiEnabled() and getSnapshot() could incorrectly report Wi-Fi as disabled when called before any stream listener had subscribed to onChanged, since the underlying network path monitor was only started reactively on stream subscription. It now starts once at plugin initialization, independent of streaming.

0.1.4 - 2026-07-06 #

Fixed #

  • homepage/repository/issue_tracker URLs in pubspec.yaml pointed to a non-existent repository, and the description exceeded pub.dev's recommended length. Both are now corrected.

0.1.3 - 2026-07-06 #

Fixed #

  • Declare the ACCESS_WIFI_STATE permission, required by WifiManager.isWifiEnabled().

0.1.2 - 2026-07-06 #

Fixed #

  • android/build.gradle failed to compile in consuming apps due to invalid statement ordering around the plugins {} block.

0.1.1 - 2026-07-06 #

Fixed #

  • android/build.gradle used a legacy Kotlin version declaration that could conflict with a consuming app's own Kotlin/AGP resolution. Now uses the Plugin DSL and inherits the version from the host app.

0.1.0 - 2026-07-03 #

Added #

  • NetworkSettingsState.isWifiEnabled(): reliable on Android and iOS (iOS is best-effort via interface availability; see README).
  • NetworkSettingsState.isMobileDataEnabled(): reliable on Android; returns null on iOS (no public API exists).
  • NetworkSettingsState.getSnapshot(): combined one-shot read.
  • NetworkSettingsState.onChanged: stream of NetworkSettingsSnapshot updates.
0
likes
160
points
84
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Check whether Wi-Fi and mobile data are enabled in device settings — not just which network is currently active.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on network_settings_state

Packages that implement network_settings_state