flutter_blue_plus
2.3.15, released 2 weeks ago by jamcorder.com
Flutter plugin for connecting to Bluetooth Low Energy devices.
What it does
Provides a BLE central‑role API for scanning, connecting, and communicating with BLE peripherals on Android, iOS, macOS, Linux, and Web. It wraps native platform APIs and exposes streams for device discovery and data exchange.
AI-written summary of version 2.3.15, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need cross‑platform BLE communication in a Flutter app
- You want a zero‑dependency plugin that works on mobile, desktop, and web
Skip it when
- You require Bluetooth Classic or peripheral role support
- Your project is a for‑profit commercial product without purchasing a commercial license
Strengths
- Supports Android, iOS, macOS, Linux, and Web
- Zero third‑party dependencies beyond Flutter itself
- Stream‑based API simplifies reactive handling
- Active maintenance with recent bug fixes
Weaknesses
- Commercial license required for for‑profit use
- Windows support is provided by a separate package
- Only central role; no peripheral capabilities
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 6
Add Bluetooth permissions to AndroidManifest (BLUETOOTH, BLUETOOTH_CONNECT, etc.) and iOS Info.plist (NSBluetoothAlwaysUsageDescription). On Web, ensure HTTPS and user gesture for scanning. Windows requires flutter_blue_plus_winrt package.
import 'package:flutter_blue_plus/flutter_blue_plus.dart';
void startScan() {
FlutterBluePlus.onScanResults.listen((results) {
for (var r in results) {
print('${r.device.remoteId}: ${r.advertisementData.advName}');
}
}, onError: (e) => print(e));
FlutterBluePlus.startScan();
}
Alternatives
Packages that do the same job and could replace flutter_blue_plus.
- universal_ble
Cross-platform Bluetooth Low Energy (BLE) plugin for Flutter
92Compare - flutter_reactive_ble
Reactive BLE plugin for Android and iOS that supports multiple devices
86Compare - flutter_blue
Connect and communicate with Bluetooth Low Energy devices on Android and iOS.
50Compare - flutter_blue_classic
A flutter plugin for communicating with bluetooth classic devices.
67Compare