Last updated:
0 purchases
lepsi sunmi cloud printer
lepsi_sunmi_cloud_printer #
A package for 80mm Kitchen Cloud Printer - SUNMI
Important #
THIS PACKAGE WILL WORK ONLY IN ANDROID!
Class Name #
SunmiCloudPrinter
copied to clipboard
Example #
Future<void> initPlatformState() async {
await SunmiCloudPrinter.setNetPrinter("IP_ADDRESS");
await SunmiCloudPrinter.connect();
}
@override
Widget build(BuildContext context) {
return ElevatedButton(
onPressed: () async => {
await SunmiCloudPrinter.printText("Connection Test !"),
await SunmiCloudPrinter.lineWrap(3),
},
child: const Text("Print connection test")
);
copied to clipboard
Installation #
flutter pub add lepsi_sunmi_cloud_printer
copied to clipboard
What this package do #
✅ Write some text
✅ Change font size
✅ Jump (n) lines
✅ Draw a divisor line
✅ Bold mode on/off
✅ Print all types of Barcodes
✅ Print Qrcodes with custom width and error-level
✅ Print image from asset or from web
✅ Print rows like receipt with custom width and alignment
❌ Able to combine with some esc/pos code that you already have!
✅ Cut paper - Dedicated method just to cut the line
❌ Printer serial no - Get the serial number of the printer
✅ Printer version - Get the printer's version
Tested Devices #
Sunmi NT311
copied to clipboard
Inspired from sunmi_printer_plus
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.