flutter_classic_bluetooth
1.7.5, released 2 days ago by almasum.dev
Bluetooth Classic RFCOMM/SPP serial communication plugin for Flutter.
What it does
Allows discovering, pairing, connecting to, and exchanging data with Bluetooth Classic devices like Arduino, ESP32, and thermal printers. Exposes connections as Dart streams and sinks across Android, Windows, macOS, Linux, and iOS.
AI-written summary of version 1.7.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to communicate with Bluetooth Classic (RFCOMM/SPP) peripherals like ESP32, HC-05, or thermal printers.
- You want stream-based reading and writing of bytes or line-by-line data from classic Bluetooth devices.
- You need a cross-platform solution supporting Android, Windows, macOS, Linux, and iOS (MFi).
Skip it when
- You are working with Bluetooth Low Energy (BLE) devices instead of Bluetooth Classic.
- You need to run your app in web browsers where Bluetooth Classic is unavailable.
Strengths
- Unified Dart API wrapping native platform stacks for Android, Windows, macOS, Linux, and iOS.
- Streamed I/O with built-in line/frame reader and request/response support.
- Supports both client and server roles, plus discovery, pairing, and adapter state streams.
Weaknesses
- iOS support is strictly limited to MFi-certified accessories.
- Platform limits prevent connection RSSI on Android, iOS, and Windows.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Android permissions are included automatically by the plugin. iOS requires configuring MFi protocols in Info.plist when working with accessories.
import 'package:flutter_classic_bluetooth/flutter_classic_bluetooth.dart';
// Check support and initialize
final adapterState = FlutterClassicBluetooth.adapterState;Alternatives
Packages that do the same job and could replace flutter_classic_bluetooth.
- blue_thermal_printer
A Flutter plugin for connecting to thermal printers via Bluetooth.
50Compare - flutter_bluetooth_printer
Image-based printing for Bluetooth thermal printers on iOS and Android.
65Compare - bluez
A Dart client for interacting with the Linux BlueZ Bluetooth stack via D-Bus.
84Compare - flutter_blue_classic
A flutter plugin for communicating with bluetooth classic devices.
67Compare
Works with
Packages commonly used together with flutter_classic_bluetooth: ones it builds on, ones built on it, and its own family.