fluttercommunity / fluttercommunity/plus_plugins
[Request]: [connectivity_plus] Get network state regardless of internet connection
- Dominant language
- Dart
- Stars
- 1.9k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
### Plugin
connectivity_plus
### Use case
I would like to check, whether Wi-Fi is turned on or off. I don't care, if there is an internet connection available or not. Same for mobile data.
Currently when I have Wi-Fi enabled but it's not connected to any network, I get `ConnectivityResult.none`.
### Proposal
I'd expect the `Connectivity::checkConnectivity()` method to return which hardware features (Wi-Fi, mobile data) are turned on and not through which hardware the internet connection is established.
Maybe another method would suite that use case better like
```
Future> getConnectivityHardwareStates()
```
Contributor guide
Assessment
This issue has not been assessed yet.