bee_thermal_printer 0.0.1
bee_thermal_printer: ^0.0.1 copied to clipboard
This is a simple package for bluetooth thermal.
example/lib/main.dart
import 'package:bee_thermal_printer/bee_thermal_printer.dart';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: Main(),
);
}
}
class Main extends StatefulWidget {
const Main({super.key});
@override
State<Main> createState() => _MainState();
}
class _MainState extends State<Main> {
final bt = BlueThermalPrinter.instance;
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text("BT Thermal"),
),
);
}
}