It is used to print text, pictures, two-dimensional code, bar code and other functions sdk in imin printer using Android system
Android |
---|
✅ |
Official Imin Inner Printer Doc
flutter pub add imin_printer
Imin M2-203
Imin M2-202
Imin M2-Pro
import 'package:imin_printer/imin_printer.dart';
import 'package:imin_printer/enums.dart';
import 'package:imin_printer/imin_style.dart';
// 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));
enum IminPrintAlign {
left,
center,
right
}
enum IminQrcodeCorrectionLevel {
levelL(48),
levelM(49),
levelQ(50),
levelH(51);
final int level;
const IminQrcodeCorrectionLevel(this.level);
}
class IminTextStyle {
bool? wordWrap;
int? fontSize;
double? space;
IminTypeface? typeface;
IminFontStyle? fontStyle;
IminPrintAlign? align;
}