marvel_printer 0.0.3 copy "marvel_printer: ^0.0.3" to clipboard
marvel_printer: ^0.0.3 copied to clipboard

PlatformAndroid

A Flutter plugin for connecting and printing receipts to POS thermal printers over USB (and future support for Bluetooth/Network). Provides APIs for printing text, images, and Arabic content using the POSSDK.

marvel_printer #

Android-only Flutter plugin for 80mm thermal printers using vendor SDKs. Features:

  • Print full-width Arabic/RTL safely (bitmap-based, no clipping)
  • Print PNG receipts at 512/576 dots
  • Print Simplified Tax Invoice with ZATCA TLV QR (auto-generate if not provided)

Install #

dependencies:
marvel_printer: ^0.1.0

Android setup #

  • Bundle vendor SDK JAR/AAR under android/src/main/libs (and .so under src/main/jniLibs/<abi>).
  • Ensure the Arabic font at android/src/main/assets/fonts/NotoNaskhArabic-Regular.ttf exists (already included).

Usage #

import 'package:marvel_printer/marvel_printer.dart';


final ok = await MarvelPrinter.printSale(saleJson: yourMap, logoPng: logoBytes, qrPng: qrBytes);

Limitations #

  • Android only (PRs welcome for iOS/Windows/Linux)
0
likes
140
points
5
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for connecting and printing receipts to POS thermal printers over USB (and future support for Bluetooth/Network). Provides APIs for printing text, images, and Arabic content using the POSSDK.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on marvel_printer

Packages that implement marvel_printer