wifi_scan
0.5.0, released 3 months ago by bhikadia.com
Flutter plugin to scan for nearby visible WiFi access points.
WASM-ready
What it does
Allows Flutter apps to trigger full WiFi scans, retrieve the latest scanned access point results, and listen to a stream of new scan results.
AI-written summary of version 0.5.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to scan for nearby visible WiFi access points on Android.
- You want to listen to a stream of newly available WiFi scan results.
Skip it when
- You need robust iOS support, as iOS requires special entitlements and has limited public APIs (stub implementation).
- You want to manage network connectivity status or connect to WiFi networks.
Strengths
- Provides APIs to check platform support and request necessary permissions before scanning.
- Supports streaming new scan results via `onScannedResultsAvailable`.
Weaknesses
- iOS implementation is largely a stub with sane returns and requires special Apple entitlements.
- Android scans are subject to system throttling on SDK >= 26.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 0
Requires platform-specific configuration and permissions, plus handling special entitlements on iOS if applicable.
final can = await WiFiScan.instance.canStartScan(askPermissions: true);
if (can == CanStartScan.yes) {
final isScanning = await WiFiScan.instance.startScan();
}Alternatives
Packages that do the same job and could replace wifi_scan.
- jni_flutter
Access Flutter Android APIs from Dart.
87Compare - shizuku_api
Flutter plugin to run shell commands via Shizuku without root
69Compare
Works with
Packages commonly used together with wifi_scan: ones it builds on, ones built on it, and its own family.