flutter_splendid_ble
1.8.1, released 5 days ago by splendidendeavors.com
A Flutter plugin for Bluetooth Low Energy (BLE) central interactions.
What it does
Allows Flutter applications to act as a BLE central device to scan for, connect to, and interact with peripheral devices. It supports reading/writing characteristics, subscriptions, bonding process observation, and connection management.
AI-written summary of version 1.7.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- Your app needs to scan for and connect to nearby Bluetooth Low Energy peripherals.
- You need to read, write, or subscribe to BLE characteristics from Flutter.
Skip it when
- You only need high-level device information or general connectivity checks without BLE.
- Your app needs to act exclusively as a BLE peripheral rather than a central (though background accessory capabilities exist).
Strengths
- Comprehensive suite of BLE operations including scanning, connecting, bonding, and characteristic management.
- Built-in testing support including a FakeCentralMethodChannel and ESP32 hardware integration testing.
Weaknesses
- Requires platform-specific configuration and permissions for Android, iOS, and macOS.
- Limited to BLE central role interactions primarily.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 1
Requires adding BLE permissions and features to AndroidManifest.xml, and Info.plist usage descriptions and Background Modes capabilities for iOS/macOS.
import 'dart:async';
StreamSubscription<BleDevice>? scanSubscription;
void startScan() async {
final Stream<BleDevice> scanStream = await bleCentral.startScan();
scanSubscription = scanStream.listen(
(device) {
print('Discovered device: \${device.name} (\${device.address})');
},
);
}Alternatives
Packages that do the same job and could replace flutter_splendid_ble.
- 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_plus
Flutter plugin for connecting to Bluetooth Low Energy devices.
90Compare - vital_bluetooth
Bluetooth LE plugin for Flutter with background support and automatic reconnect
66Compare
Works with
Packages commonly used together with flutter_splendid_ble: ones it builds on, ones built on it, and its own family.