パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v0.0.6

bluetooth_thermal_printer

このライブラリは、Bluetoothプリンタ(Android専用)を使用してレシートを印刷できます。

AndroidiOS
30日間ダウンロード
225
いいね数
78
Pub ポイント
150

パッケージをインストール

flutter pub add bluetooth_thermal_printer

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Bluetoothプリンタを介してレシートを印刷するためのFlutterパッケージで、現在はAndroidのみをサポートしています。Androidデバイスから熱転写プリンタとシームレスに統合し、印刷ジョブを直接生成および送信できます。販売端末システム、小売アプリ、移動式レシート印刷が必要なキオスクに最適です。このライブラリはBluetoothペアリングとデータ送信を効率的に処理し、フォーマットされたテキストや画像を互換性のあるプリンタに送信するプロセスを簡素化します。

用途

  • 販売時点システム
  • 小売レシート印刷
  • キオスクアプリケーション
  • モバイル注文処理
  • 在庫管理

主な機能

  • Android専用のサポート
  • Bluetoothプリンタの統合
  • テキストと画像の印刷
  • 簡単なセットアップとペアリング
  • 軽量で高速

適している対象

  • 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

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。