搜尋套件、儲存庫與 APP 分類

套件詳情v0.0.6

bluetooth_thermal_printer

該庫允許使用藍牙列印機(僅限 Android)列印收據。

AndroidiOS
近 30 天下載
225
喜歡數
78
Pub 分數
150

安裝套件

flutter pub add bluetooth_thermal_printer

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個用於透過藍牙印表機列印收據的Flutter套件,目前僅支援Android。它能與熱敏印表機無縫整合,直接從Android裝置產生並傳送列印工作。適用於需要隨時隨地列印收據的銷售點系統、零售應用及自助服務機。該程式庫有效處理藍牙配對與資料傳輸,簡化將格式化文字與影像傳送至相容印表機的流程。

適用情境

  • 銷售點系統
  • 零售收據打印
  • 自助服務應用程式
  • 移動訂單處理
  • 庫存管理

主要特色

  • 僅支援 Android
  • 藍牙印表機整合
  • 文字和圖像打印
  • 輕鬆設定與配對
  • 輕巧且快速

適合對象

  • Android 開發者
  • 零售應用創建者
  • POS系統整合商
  • 移動商務解決方案

使用建議

  • 僅限Android平台
  • 需要相容的藍牙熱敏打印機
  • 手動處理印表機專用命令
  • 不支援 iOS
  • 依賴外部原生庫

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

bluetooth_thermal_printer

Pub Version

The library allows printing receipts using a Bluetooth printer(Android Only). It supports both 58mm and 80mm Bluetooth printers.

This package does not use Location Permission. By that, it follows google's policy of Android 10.

Add-ons

  1. esc_pos_utils package to print receipts
  2. Image to print images
Simple Ticket with Styles:
List<int> testTicket() {
  final List<int> bytes = [];
  // Using default profile
  final profile = await CapabilityProfile.load();
  final generator = Generator(PaperSize.mm80, profile);
  List<int> bytes = [];

  bytes += generator.text(
      'Regular: aA bB cC dD eE fF gG hH iI jJ kK lL mM nN oO pP qQ rR sS tT uU vV wW xX yY zZ');
  bytes += generator.text('Special 1: àÀ èÈ éÉ ûÛ üÜ çÇ ôÔ',
      styles: PosStyles(codeTable: PosCodeTable.westEur));
  bytes += generator.text('Special 2: blåbærgrød',
      styles: PosStyles(codeTable: PosCodeTable.westEur));

  bytes += generator.text('Bold text', styles: PosStyles(bold: true));
  bytes += generator.text('Reverse text', styles: PosStyles(reverse: true));
  bytes += generator.text('Underlined text',
      styles: PosStyles(underline: true), linesAfter: 1);
  bytes += generator.text('Align left', styles: PosStyles(align: PosAlign.left));
  bytes += generator.text('Align center', styles: PosStyles(align: PosAlign.center));
  bytes += generator.text('Align right',
      styles: PosStyles(align: PosAlign.right), linesAfter: 1);

  bytes += generator.text('Text size 200%',
      styles: PosStyles(
        height: PosTextSize.size2,
        width: PosTextSize.size2,
      ));

  bytes += generator.feed(2);
  bytes += generator.cut();
  return bytes;
}

You can find more examples here: esc_pos_utils.

How to Help

  • Test your printer and add it in the table: Tested Printers
  • Test and report bugs
  • Share your ideas about what could be improved (code optimization, new features...)
  • PRs are welcomed!

Tested Printers

Here are some printers tested with this library. Please add the models you have tested to maintain and improve this library and help others to choose the right printer.

For a complete example, check the example project.

Test Print

test receipt test receipt

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。