plugin_wifi_connect
2.0.3, released 3 months ago by an unverified publisher
Connects mobile devices to Wi-Fi networks using a specific SSID or SSID prefix.
What it does
A Flutter plugin that enables simple programmatic connection to Wi-Fi devices using an exact SSID or an SSID prefix. It works on Android 10+ and iOS 11+, making it suitable for interacting with IoT hardware.
AI-written summary of version 2.0.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to connect your Flutter app directly to an IoT device via Wi-Fi.
- You want to connect to a Wi-Fi network using an exact SSID or an SSID prefix with a password.
Skip it when
- You need advanced Wi-Fi scanning features beyond simple prefix matching and connecting.
- Target platforms do not meet the minimum OS requirements (Android 10+, iOS 11+).
Strengths
- Supports both exact SSID and SSID prefix matching.
- Low dependency plugin focused strictly on Wi-Fi connectivity.
- Compatible with modern Android and iOS versions.
Weaknesses
- Requires platform-specific permissions like ACCESS_FINE_LOCATION on Android.
- Certain networks like captive portals or MDM-managed networks may not work on iOS.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Add required Android permissions (ACCESS_FINE_LOCATION, ACCESS_WIFI_STATE, CHANGE_WIFI_STATE) to AndroidManifest.xml.
Future<void> _connectDirect() async {
final ok = await PluginWifiConnect.connectToSsid(
ssid: 'MeuDispositivoWiFi',
password: 'senha123',
);
}Alternatives
Packages that do the same job and could replace plugin_wifi_connect.
- flutter_blue_plus
Flutter plugin for connecting to Bluetooth Low Energy devices.
90Compare - wakelock_plus
Keep the device screen awake across mobile, desktop, and web platforms.
92Compare - universal_ble
Cross-platform Bluetooth Low Energy (BLE) plugin for Flutter
92Compare - wifi_iot
Flutter plugin to handle Wi-Fi connections and hotspot (AP, STA) on Android and iOS
81Compare