Search packages, repositories and app categories

Package detailsv0.0.14

blue_print_pos

Plugin to connecting bluetooth printer device, support on Android and iOS

30-day downloads
100
Likes
56
Pub points
70

Install package

flutter pub add blue_print_pos

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

BluePrintPOS is a Flutter plugin that enables seamless connection to Bluetooth printer devices on both Android and iOS platforms. It provides a straightforward API for sending print commands, making it ideal for retail, point-of-sale (POS), and receipt printing applications. The plugin handles device discovery, pairing, and data transmission efficiently, ensuring reliable communication with compatible printers. With minimal setup, developers can integrate real-time printing functionality into their apps. It supports common printing operations such as text, barcode, and image output.

Use cases

  • Retail POS systems
  • Receipt printing
  • Inventory management
  • Event ticket printing
  • Mobile order processing

Key features

  • Bluetooth printer connectivity
  • Cross-platform support (Android & iOS)
  • Text and barcode printing
  • Simple API integration
  • Real-time print command execution

Suitable for

  • Developers building POS apps
  • Mobile retail solutions
  • Field service applications
  • On-the-go printing needs
  • Businesses requiring portable receipt printing

Considerations

  • Requires compatible Bluetooth printers
  • Limited to Android and iOS platforms
  • Printer-specific formatting may vary
  • Needs proper permissions for Bluetooth access
  • May require testing with specific hardware models

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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

Categories

Dependencies

Dependency list 5 items

Source repository

Projects using this package

No data available yet.