marvel_printer 0.0.3
marvel_printer: ^0.0.3 copied to clipboard
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.soundersrc/main/jniLibs/<abi>). - Ensure the Arabic font at
android/src/main/assets/fonts/NotoNaskhArabic-Regular.ttfexists (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)