Last updated:
0 purchases
maxx sunmi printer
maxx_sunmi_printer #
A new flutter plugin project.
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, view our
online documentation, which offers tutorials,
samples, guidance on mobile development, and a full API reference.
Contact Info #
Company Maxx4Business
Developer KyZz
Website : www.maxx4business.com
Support OS #
This package support with android only
Device Support #
Sunmi v2
Sunmi v2s
Sunmi v2 Pro
Other model
Import Package #
import 'package:maxx_sunmi_printer/maxx_sunmi_printer.dart';
copied to clipboard
Features & Usage #
Print Text
MaxxSunmiPrinter.printText("សួស្តីកម្ពុជា");
copied to clipboard
Paper Feed
MaxxSunmiPrinter.paperFeed()
copied to clipboard
Print Image
ByteData bytes = await rootBundle.load('assets/logo.jpg');
final buffer = bytes.buffer;
final imgData = base64.encode(Uint8List.view(buffer));
MaxxSunmiPrinter.printImage(imgData, align: SunmiAlign.center);
MaxxSunmiPrinter.paperFeed(number: 1);
copied to clipboard
Print Text Line ( ------------------------ )
MaxxSunmiPrinter.printTextLine()
copied to clipboard
Print Barcode
MaxxSunmiPrinter.printBarcode("1234567890123")
copied to clipboard
print Qr Code
MaxxSunmiPrinter.printQrCode("www.maxx4business.com")
copied to clipboard
Print Table
MaxxSunmiPrinter.printTable(
isBold: true,
cols: [
SunmiCol(text: 'បរិយាយ', width: 5),
SunmiCol(text: 'ចំនួន', width: 2, align: SunmiAlign.right),
SunmiCol(text: 'តម្លៃ', width: 2, align: SunmiAlign.right),
SunmiCol(text: 'សរុប', width: 3, align: SunmiAlign.right),
],
);
copied to clipboard
This package dependent on libray java of sunmi
Print Demo source code - Java Android
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.