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

パッケージ詳細v0.0.14

blue_print_pos

Bluetoothプリンタデバイスに接続するためのプラグイン、AndroidおよびiOSに対応

30日間ダウンロード
100
いいね数
56
Pub ポイント
70

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

flutter pub add blue_print_pos

パッケージ概要

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

BluePrintPOS は、Android および iOS プラットフォーム上で Bluetooth プリンター デバイスとのシームレスな接続を可能にする Flutter プラグインです。印刷コマンドの送信に簡単な API を提供しており、小売、販売端末(POS)、レシート印刷アプリケーションに最適です。プラグインはデバイス検出、ペアリング、データ転送を効率的に処理し、互換性のあるプリンターとの信頼性の高い通信を保証します。最小限の設定で開発者はリアルタイム印刷機能をアプリに統合できます。テキスト、バーコード、画像出力などの一般的な印刷操作をサポートしています。

用途

  • 小売POSシステム
  • 領収書印刷
  • 在庫管理
  • イベントチケットの印刷
  • モバイル注文処理

主な機能

  • ブルートゥースプリンタ接続
  • クロスプラットフォーム対応(Android および iOS)
  • テキストとバーコード印刷
  • シンプルなAPI統合
  • リアルタイム印刷コマンド実行

適している対象

  • POSアプリを開発する開発者
  • モバイル小売ソリューション
  • 現場サービスアプリケーション
  • 外出先での印刷ニーズ
  • ポータブルレシート印刷を必要とする事業

注意事項

  • 互換性のあるBluetoothプリンターが必要です
  • Android および iOS プラットフォームに限定
  • プリンタ固有のフォーマットは異なる場合があります
  • Bluetooth アクセスに適切な権限が必要です
  • 特定のハードウェアモデルとのテストが必要になる場合があります

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Introduction

This plugin to help use bluetooth printer in Android/iOS. Support for text, image, add new line or line dashed and QR.

Usage

Initialize
BluePrintPos bluePrintPos = BluePrintPos.instance; 
Scan bluetooth printer
bluePrintPos.scan();
Connect bluetooth printer
bluePrintPos.connect(device);
Print Text

In method .addText(text, {size, style, alignment}) you can modify size, style and alignment

ReceiptSectionText receiptText = ReceiptSectionText();
receiptText.addText('MY STORE', size: ReceiptTextSizeType.medium, style: ReceiptTextStyleType.bold);
Print text left right
receiptText.addLeftRightText('Time', '04/06/21, 10:00');
Print image
final ByteData logoBytes = await rootBundle.load('assets/logo.jpg');
receiptText.addImage(
  base64.encode(Uint8List.view(logoBytes.buffer)),
  width: 150,
);
Add new line
receiptText.addSpacer();
Add new line with dash
receiptText.addSpacer(useDashed: true);

Getting Started

Android

Change the minSdkVersion in android/app/build.gradle in 19

android {
  defaultConfig {
     minSdkVersion 19
  }
}

Add permission for Bluetooth and access location in android/app/src/main/AndroidManifest.xml

<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
iOS

Add info key in ios/Runner/Info.plist

<key>NSBluetoothAlwaysUsageDescription</key>  
<string>Need BLE permission</string>  
<key>NSBluetoothPeripheralUsageDescription</key>  
<string>Need BLE permission</string>  
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>  
<string>Need Location permission</string>  
<key>NSLocationAlwaysUsageDescription</key>  
<string>Need Location permission</string>  
<key>NSLocationWhenInUseUsageDescription</key>  
<string>Need Location permission</string>

Thanks to

Reference and dependencies create this plugin

カテゴリー

依存関係

依存関係一覧 5 件

ソースリポジトリ

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

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