wifi_configuration 0.0.4 wifi_configuration: ^0.0.4 copied to clipboard
Flutter Wifi Plugin.
wifi_configuration #
A new Flutter plugin.
Getting Started #
This plugin allows Flutter apps to get available wifi ssid list, user can connect to wifi with ssid and password. This plugin works Android. iOS will be released later.
Sample usage to check current status:
Note :- This plugin requires the location permission to auto enable the wifi if android version is above 9.0.
import 'package:wifi_configuration/wifi_configuration.dart';
var listAvailableWifi = await WifiConfiguration.getWifiList();
bool connectionState = await WifiConfiguration.connectToWifi("Wifi ssid", "Wifi Pass");
//This will return a boolean value
//If wifi is available then device will get connected
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.