5 Best Bluetooth Packages for Flutter

Developers need to work with Bluetooth communication in many cases such as connecting to a printer or a headphone. Following are the best Flutter Bluetooth packages.

To use Bluetooth in either Android or iOS, you need to add permissions to AndroidManifest.xml or Info.plist.

<uses-permission android:name="android.permission.BLUETOOTH" />  
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />  
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>

<string>Need BLE permission</string>  
<string>Need BLE permission</string>  
<string>Need Location permission</string>  
<string>Need Location permission</string>  
<string>Need Location permission</string>


FlutterBlue helps connecting and communicating with Bluetooth Low Energy devices. It supports Android and iOS. This package is under active development, so there might be break changes in upcoming version.

bluetooth bluetooth = bluetooth.instance;

//scan and find Bluetooth devices
bluetooth.startScan(timeout: Duration(seconds: 6));
var subscription = bluetooth.scanResults.listen((results) {
    // do something with scan results
    for (ScanResult r in results) {
        print('${r.device.name} found! rssi: ${r.rssi}');


flutter_ble_lib is a Flutter library which works with Bluetooth Low Energy. It supports BLEmulator, the BLE simulator, which make using it to devleop Bluetooth app easier.

BleManager bleManager = BleManager();
await bleManager.createClient();
BluetoothState currentState = await bleManager.bluetoothState();
bleManager.observeBluetoothState().listen((btState) {


This plugin help connects your Android device to a thermal printer.

BlueThermalPrinter bluetooth = BlueThermalPrinter.instance;
List<BluetoothDevice> devices = [];

try {
	devices = await bluetooth.getBondedDevices();
} on PlatformException {

bluetooth.onStateChanged().listen((state) {
	switch (state) {
	case BlueThermalPrinter.CONNECTED:
	case BlueThermalPrinter.DISCONNECTED:


This plugin also allows a device to connect to a thermal printer. Furthermore, it supports both Android and iOS.

method list
bluetooth bluetooth = bluetooth.instance;

// scan and get devices
bluetooth.startScan(timeout: Duration(seconds: 4));

// get devices
    stream: bluetooth.scanResults,
    initialData: [],
    builder: (c, snapshot) => Column(
      children: snapshot.data.map((d) => ListTile(
        title: Text(d.name??''),
        subtitle: Text(d.address),
        onTap: () async {
          setState(() {
            _device = d;
        trailing: _device!=null && _device.address == d.address?Icon(
          color: Colors.green,

//connect and disconnect a device
await bluetooth.connect(_device);
await bluetooth.disconnect();


Map<String, dynamic> config = Map();
config['width'] = 50; 
config['height'] = 60;
config['gap'] = 3; 

List<LineText> data = List();
list.add(LineText(type: LineText.TYPE_TEXT, content: 'A Title', weight: 1, align: LineText.ALIGN_CENTER,linefeed: 1));
list.add(LineText(type: LineText.TYPE_TEXT, content: 'this is conent left', weight: 0, align: LineText.ALIGN_LEFT,linefeed: 1));
list.add(LineText(type: LineText.TYPE_TEXT, content: 'this is conent right', align: LineText.ALIGN_RIGHT,linefeed: 1));
list.add(LineText(linefeed: 1));
list.add(LineText(type: LineText.TYPE_BARCODE, content: 'A12312112', size:10, align: LineText.ALIGN_CENTER, linefeed: 1));
list.add(LineText(linefeed: 1));
list.add(LineText(type: LineText.TYPE_QRCODE, content: 'qrcode i', size:10, align: LineText.ALIGN_CENTER, linefeed: 1));
list.add(LineText(linefeed: 1));

await bluetooth.printReceipt(config, data);


This is a cross-platform BluetoothLE plugin for Flutter, which supports Android, iOS, macOS, and Windows. This is the most versatile bluetooth plugin yet.


void _handleConnectionChange(String deviceId, BlueConnectionState state) {
  print('_handleConnectionChange $deviceId, $state');


Leave a Comment

Your email address will not be published. Required fields are marked *

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.