printer_plus 1.10.0 copy "printer_plus: ^1.10.0" to clipboard
printer_plus: ^1.10.0 copied to clipboard

A Flutter plugin for print text, qrcode, barcode label to printer via bluetooth.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:printer_plus/printer.dart';

void main() {
  runApp(const 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 MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: ElevatedButton(
              onPressed: () {
                _print();
              },
              child: const Text("Print")),
        ),
      ),
    );
  }

  _print() async {
    await TSCBTPrinter.printText(
        macAddress: "MAC Address", content: "datadirr");
    await TSCBTPrinter.printQR(macAddress: "MAC Address", content: "datadirr");
    await TSCBTPrinter.printBarcode(
        macAddress: "MAC Address", content: "datadirr");
  }
}
8
likes
0
points
185
downloads

Publisher

verified publisherdatadirr.com

Weekly Downloads

A Flutter plugin for print text, qrcode, barcode label to printer via bluetooth.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface

More

Packages that depend on printer_plus