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)