printing_ffi
0.0.11, released a year ago by shreeman.dev
Flutter plugin for direct printer communication and print job management via native FFI bindings.
What it does
Communicates directly with printers using native FFI bindings on macOS, Windows, and Linux. Enables listing printers, sending raw print data or PDFs, managing print jobs, and tracking job status.
AI-written summary of version 0.0.11, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need direct, low-level printer communication via FFI on desktop platforms.
- You need to send raw print data like ZPL or ESC/POS to thermal or POS printers.
- You require fine-grained print job management such as pausing, resuming, or canceling jobs.
Skip it when
- You are targeting mobile platforms like Android or iOS.
- You want a high-level cross-platform solution without desktop-specific native setup.
Strengths
- Uses native FFI for improved performance and direct API access.
- Supports offline printers on macOS.
- Provides comprehensive print job management and status streams.
Weaknesses
- Does not support mobile platforms (Android and iOS).
- Requires manual native dependency setup such as CUPS on macOS/Linux.
Setup
- Kind
- Plugin (native code)
- Effort
- High
- Code generation
- No
- Direct dependencies
- 2
Requires installing CUPS development libraries on macOS and Linux, updating the macOS Podfile, and optionally handling PDFium initialization on Windows.
import 'package:printing_ffi/printing_ffi.dart';
final printingFfi = PrintingFfi.instance;
List<Printer> printers = printingFfi.listPrinters();Alternatives
Packages that do the same job and could replace printing_ffi.
- pdf
A PDF generation library for Dart and Flutter using a widget-like layout system.
89Compare - pdfium_flutter
Flutter FFI plugin that bundles PDFium for native PDF rendering on Android, iOS, Windows, macOS, and Linux.
84Compare - pdfium_dart
Dart FFI bindings for the PDFium library providing low-level C API access.
82Compare - git2dart
Dart bindings to libgit2 for working with Git repositories via FFI.
65Compare
Works with
Packages commonly used together with printing_ffi: ones it builds on, ones built on it, and its own family.