An open API service indexing awesome lists of open source software.

https://github.com/scientifichackers/flutter-wifi-connect

Dead simple WiFi connect functionality for flutter.
https://github.com/scientifichackers/flutter-wifi-connect

Last synced: 8 months ago
JSON representation

Dead simple WiFi connect functionality for flutter.

Awesome Lists containing this project

README

          

# Flutter WiFi Connect

Easily connect to a specified WiFi AP programmatically, using this plugin.

```dart
import 'package:wifi_connect/wifi_connect.dart';
```

```dart
WifiConnect.connect(context, 'ssid', 'password');
```

It's that simple. No fussing with permissions, enabling WiFi, location and all that boring stuff.

---

```dart
var connectedTo = WifiConnect.getConnectedSSID(context);
print('Connected to: $connectedTo');
```

---

And behold, the mighty `WifiScannerMixin`!

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

class _MyAppState extends State with WifiScannerMixin {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: Text("Connected to '$connectedSSID'"),
)
)
);
}

@override
void initState() {
super.initState();
startWifiScanner();
}
}
```