imin_printer 0.6.0 copy "imin_printer: ^0.6.0" to clipboard
imin_printer: ^0.6.0 copied to clipboard

retracted

It is used to print text, pictures, two-dimensional code, bar code and other functions sdk in imin printer using Android system

imin_printer #

It is used to print text, pictures, two-dimensional code, bar code and other functions sdk in imin printer using Android system

Resources: #

Platform Support

Android

Official Imin Inner Printer Doc

Getting Started #

Installation #

flutter pub add imin_printer

Tested Devices #

Imin M2-203 
Imin M2-202
Imin M2-Pro

Just see the example folder! #

import 'package:imin_printer/imin_printer.dart';
import 'package:imin_printer/enums.dart';
import 'package:imin_printer/imin_style.dart';

Example code when use for transaction printing #

  // all method from imin printer need to async await
 await iminPrinter.initPrinter();   // must init the printer first. for more exmaple.. pls refer to example tab.

 await iminPrinter.getPrinterStatus();
 await iminPrinter.printText('print example', style: IminTextStyle(wordWrap: true));

List of enum Alignments #

enum IminPrintAlign { 
  left, 
  center, 
  right 
}

List of enum Qrcode levels #

enum IminQrcodeCorrectionLevel {
  levelL(48),
  levelM(49),
  levelQ(50),
  levelH(51);

  final int level;
  const IminQrcodeCorrectionLevel(this.level);
}

IminTextStyle #

class IminTextStyle {
  bool? wordWrap;
  int? fontSize;
  double? space;
  IminTypeface? typeface;
  IminFontStyle? fontStyle;
  IminPrintAlign? align;
}
6
likes
0
pub points
84%
popularity

Publisher

verified publisherimin.sg

It is used to print text, pictures, two-dimensional code, bar code and other functions sdk in imin printer using Android system

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, logger, plugin_platform_interface

More

Packages that depend on imin_printer