패키지, 저장소 및 앱 카테고리 검색

패키지 상세v0.0.14

blue_print_pos

블루투스 프린터 장치에 연결하는 플러그인으로, Android 및 iOS를 지원합니다

30일 다운로드
100
좋아요
56
Pub 점수
70

패키지 설치

flutter pub add blue_print_pos

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

BluePrintPOS는 Android 및 iOS 플랫폼에서 블루투스 프린터 장치와 원활한 연결을 가능하게 하는 Flutter 플러그인입니다. 간단한 API를 통해 인쇄 명령을 보내며, 소매점, 포인트 오브 세일(POS), 영수증 인쇄 애플리케이션에 적합합니다. 이 플러그인은 장치 탐지, 페어링 및 데이터 전송을 효율적으로 처리하여 호환되는 프린터와 신뢰할 수 있는 통신을 보장합니다. 최소한의 설정으로 개발자는 앱에 실시간 인쇄 기능을 통합할 수 있습니다. 텍스트, 바코드, 이미지 출력과 같은 일반적인 인쇄 작업을 지원합니다.

사용 사례

  • 소매 POS 시스템
  • 영수증 인쇄
  • 재고 관리
  • 이벤트 티켓 인쇄
  • 모바일 주문 처리

주요 기능

  • 블루투스 프린터 연결
  • 크로스 플랫폼 지원 (Android 및 iOS)
  • 텍스트 및 바코드 인쇄
  • 간단한 API 통합
  • 실시간 인쇄 명령 실행

적합한 대상

  • POS 앱을 개발하는 개발자
  • 모바일 소매 솔루션
  • 현장 서비스 애플리케이션
  • 이동 중 인쇄 필요성
  • 이동식 영수증 인쇄가 필요한 사업

고려 사항

  • 호환되는 블루투스 프린터가 필요합니다
  • Android 및 iOS 플랫폼에 한정
  • 프린터별 형식은 다를 수 있습니다
  • 블루투스 액세스를 위한 적절한 권한이 필요합니다
  • 특정 하드웨어 모델과 함께 테스트가 필요할 수 있습니다

원본 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 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.