sunmi_cloud_printer
A package for 80mm Kitchen Cloud Printer - SUNMI
Important
THIS PACKAGE WILL WORK ONLY IN ANDROID!
Class Name
SunmiCloudPrinter
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")
);
Installation
flutter pub add sunmi_cloud_printer
What this package do
xWrite some textxChange font sizexJump (n) linesxDraw a divisor linexBold mode on/offxPrint all types of BarcodesxPrint Qrcodes with custom width and error-levelxPrint image from asset or from webxPrint rows like receipt with custom width and alignmentAble to combine with some esc/pos code that you already have!xCut paper - Dedicated method just to cut the linePrinter serial no - Get the serial number of the printerxPrinter version - Get the printer's version
Tested Devices
Sunmi NT311
Inspired from sunmi_printer_plus