fuadreza / imin_printer

Unofficial library to comunicate with Imin devices in Flutter
https://pub.dev/packages/another_imin_printer
BSD 3-Clause "New" or "Revised" License
3 stars 4 forks source link
flutter imin

Imin Printer

A flutter package to support command on Imin devices

Support

Tested On

Installation

flutter pub add another_imin_printer

What this package do

Printer Related

All printer related command available:

LCD Display Related

Tested on: Imin D1

Cash Drawer Related

Tested on: Imin D4 Pro

You can combine this package with presentation_display to use customer display on some Imin device

Example

Instance

IminPrinter iminPrinter = IminPrinter();

Init Printer

Use init before accessing other functionality

iminPrinter.initPrinter(printSizeImin: PrintSizeImin.mm58);

Print Text

iminPrinter.printText('Sample Text', printStyle: const PrintStyle(textAlign: PrintStyleAlign.center)); // Print text on Center

Print 2 Column Text

iminPrinter.print2ColumnsText(['Left Text', 'Right Text']);

Print Bytes

iminPrinter.printBytes(Uint8List.fromList([0x1B, 0x40, 0x0A])); // Print raw bytes

Open Cash Drawer

iminPrinter.openCashDrawer();