Skip to content
pubscout

bluetooth_classic

0.0.4, released a year ago by matteogassend.com

A Flutter plugin to connect to Bluetooth Classic devices, mainly designed for serial communication.

WASM-ready
$ flutter pub add bluetooth_classic
Source repository

What it does

Allows Flutter applications to check permissions, get paired Bluetooth Classic devices, scan for nearby devices, and connect or disconnect. It also supports reading from and writing data to connected devices.

AI-written summary of version 0.0.4, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to communicate with Bluetooth Classic devices like serial modules.
  • Your application requires scanning and pairing Bluetooth Classic peripherals on Android.

Skip it when

  • You only need Bluetooth Low Energy (BLE) devices.
  • You are developing for platforms other than Android (as platforms are listed only as android).

Strengths

  • Enables straightforward connection and serial data transfer with Bluetooth Classic devices.
  • Provides stream-based device discovery and data reception.

Weaknesses

  • Limited platform documentation and support scope.
  • Early version (0.0.4) which may lack advanced configuration features.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
1

Requires permission initialization before use.

import 'package:bluetooth_classic/bluetooth_classic.dart';

final _bluetoothClassicPlugin = BluetoothClassic();
await _bluetoothClassicPlugin.initPermissions();
List<Device> _discoveredDevices = await _bluetoothClassicPlugin.getPairedDevices();

Alternatives

Packages that do the same job and could replace bluetooth_classic.

Works with

Packages commonly used together with bluetooth_classic: ones it builds on, ones built on it, and its own family.