Skip to content
pubscout

flutter_usb_printer

0.3.2, released 3 months ago by mylekha.app

Send data and work with USB printers on Android.

Copyleft license
$ flutter pub add flutter_usb_printer
Source repository

What it does

Allows Flutter apps to interact with USB printers on Android. It provides methods to list connected USB devices, connect to them, and write raw or text data for printing.

AI-written summary of version 0.3.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to connect and print receipts or documents to a USB thermal printer from an Android Flutter app.
  • You want to manage USB device permissions and bulk data transfers directly.

Skip it when

  • You need printing support for iOS, desktop, or web platforms.
  • You require high-level document printing (like PDF rendering) rather than raw ESC/POS byte streams.

Strengths

  • Supports chunked data transfers and connection serialization for stable printing.
  • Handles automatic USB permission dialogs and detached device cleanups.

Weaknesses

  • Limited to Android platform only.
  • Documentation outside the basic README example is sparse.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
0

Android only. Minimum SDK raised to 24 in recent versions. Uses USB device attached intent-filters.

_getDevicelist() async {
    List<Map<String, dynamic>> results = [];
    results = await FlutterUsbPrinter.getUSBDeviceList();
    setState(() {
      devices = results;
    });
}

Alternatives

Packages that do the same job and could replace flutter_usb_printer.