universal_ble
3.4.0, released yesterday by navideck.com
Cross-platform Bluetooth Low Energy (BLE) plugin for Flutter
What it does
A cross-platform plugin enabling Flutter apps to act as BLE clients or peripherals across Android, iOS, macOS, Windows, Linux, and Web. It supports scanning, connecting, discovering services, reading/writing data, pairing, and managing BLE availability.
AI-written summary of version 3.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to build a Flutter application that interacts with BLE peripherals across mobile, desktop, and web.
- Your app needs to act as a peripheral device as well as a client.
- You require detailed scan filters, MTU requests, RSSI reading, and connection state streams.
Skip it when
- You only need Bluetooth Classic instead of Low Energy.
- You do not want to handle platform-specific permissions and Bluetooth setup.
Strengths
- Supports all major platforms including Android, iOS, macOS, Windows, Linux, and Web.
- Provides both client mode and peripheral mode APIs.
- Rich scanning filters with service data, manufacturer data, and name prefixes.
Weaknesses
- Some advanced features have platform-specific limitations or lack support on specific targets (e.g. Web Bluetooth limitations).
- Requires platform-specific permission setup.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 4
Requires platform-specific permission setup for Bluetooth on Android, iOS, macOS, Windows, Linux, and Web.
UniversalBle.scanStream.listen((BleDevice bleDevice) {});
UniversalBle.startScan();Alternatives
Packages that do the same job and could replace universal_ble.
- flutter_blue_plus
Flutter plugin for connecting to Bluetooth Low Energy devices.
90Compare - flutter_reactive_ble
Reactive BLE plugin for Android and iOS that supports multiple devices
86Compare - flutter_splendid_ble
A Flutter plugin for Bluetooth Low Energy (BLE) central interactions.
72Compare - vital_bluetooth
Bluetooth LE plugin for Flutter with background support and automatic reconnect
66Compare
Works with
Packages commonly used together with universal_ble: ones it builds on, ones built on it, and its own family.
- plugin_platform_interfaceuniversal_ble depends on itReusable base class for platform interfaces of Flutter federated plugins.
- bluezuniversal_ble depends on itA Dart client for interacting with the Linux BlueZ Bluetooth stack via D-Bus.
- flutter_web_bluetoothuniversal_ble depends on itA Dart library to use the Web Bluetooth API in your projects.
- flutter_thermal_printerBuilt on universal_blePrint via ESC/POS commands on thermal printers using Bluetooth, BLE, USB, or WiFi.