pos_printer_lib

Flutter plugin for printing to POS printer.

Getting Started

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Installation

Add the following to your pubspec.yaml file:

dependencies:
  pos_printer_lib: ^0.0.4

Usage

import 'package:pos_printer_lib/pos_printer_lib.dart';

Methods

First need to check if the printer is connected and has permission to print.

  • checkPrinterPermission() Get the number of printers connected.
  • getNumberOfPrinters() Print a receipt to the printer.
  • printReceipt(String base64String)

License

This project is licensed under the MIT License - see the LICENSE file for details.