Reputation: 6637
How to check if Wlan is activated with flutter? I want to preload videos if the user doesn't use mobile data. So is there any way to determine if wlan is activated?
Upvotes: 1
Views: 460
Reputation: 657861
There is the connectivity plugin that does that.
It can't tell you though whether the network allows to access the internet.
This plugin allows Flutter apps to discover network connectivity and configure themselves accordingly. It can distinguish between cellular vs WiFi connection. This plugin works for iOS and Android.
Upvotes: 1