bluetooth_serial_next 0.1.0
bluetooth_serial_next: ^0.1.0 copied to clipboard
Maintained replacement for flutter_bluetooth_serial: Bluetooth Classic SPP (RFCOMM) for Android, for HC-05/HC-06, ESP32, ELM327 and printers.
import 'package:bluetooth_serial_next/bluetooth_serial_next.dart';
import 'package:flutter/material.dart';
import 'devices_page.dart';
void main() => runApp(TerminalApp(bt: BluetoothSerial.instance));
class TerminalApp extends StatelessWidget {
const TerminalApp({super.key, required this.bt});
final BluetoothSerial bt;
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Bluetooth serial terminal',
theme: ThemeData(colorSchemeSeed: Colors.indigo),
darkTheme: ThemeData(
colorSchemeSeed: Colors.indigo,
brightness: Brightness.dark,
),
home: DevicesPage(bt: bt),
);
}
}