fluttercommunity / fluttercommunity/plus_plugins

[Request]: [connectivity_plus] Get network state regardless of internet connection

Open
#963 1 comment 0 reactions 0 assignees View on GitHub
enhancement Hacktoberfest triage
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.