maxx_sunmi_printer 0.0.6 copy "maxx_sunmi_printer: ^0.0.6" to clipboard
maxx_sunmi_printer: ^0.0.6 copied to clipboard

Print with sunmi mobile 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 #

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

3
likes
130
points
41
downloads

Publisher

verified publishermaxx4business.com

Weekly Downloads

2024.07.08 - 2025.01.20

Print with sunmi mobile printer.

Homepage
Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on maxx_sunmi_printer