wifi_configuration 0.0.1 copy "wifi_configuration: ^0.0.1" to clipboard
wifi_configuration: ^0.0.1 copied to clipboard

outdated

Flutter Wifi Plugin.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'dart:async';

import 'package:flutter/services.dart';
import 'package:wifi_configuration/wifi_configuration.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}




class _MyAppState extends State<MyApp> {
  String _platformVersion = 'Unknown';

  @override
  void initState() {
    super.initState();
    getConnectionState();
  }

void getConnectionState() async {
  var listAvailableWifi = await WifiConfiguration.getWifiList();
  print("get wifi list : " + listAvailableWifi.toString());
    bool connectionState = await WifiConfiguration.connectToWifi("Rk", "123456@123");
    print("is Connected : ${connectionState}");

}




  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Text('Running on: $_platformVersion\n'),
        ),
      ),
    );
  }
}
25
likes
0
pub points
62%
popularity

Publisher

unverified uploader

Flutter Wifi Plugin.

Homepage

Documentation

Documentation

License

unknown (license)

Dependencies

flutter

More

Packages that depend on wifi_configuration