flutter_bluetooth_classic_serial 1.0.1
flutter_bluetooth_classic_serial: ^1.0.1 copied to clipboard
A Flutter plugin for Bluetooth Classic communication on Android, iOS, and Windows platforms. Supports device discovery, connection management, and data transmission.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add flutter_bluetooth_classic_serial
With Flutter:
$ flutter pub add flutter_bluetooth_classic_serial
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
flutter_bluetooth_classic_serial: ^1.0.1
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:flutter_bluetooth_classic_serial/bluetooth_service.dart';
import 'package:flutter_bluetooth_classic_serial/flutter_bluetooth_classic.dart';
import 'package:flutter_bluetooth_classic_serial/flutter_bluetooth_classic_platform_interface.dart';
import 'package:flutter_bluetooth_classic_serial/main.dart';