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

패키지 상세v0.0.6

bluetooth_thermal_printer

이 라이브러리는 블루투스 프린터(안드로이드 전용)를 사용하여 영수증을 인쇄할 수 있습니다.

AndroidiOS
30일 다운로드
225
좋아요
78
Pub 점수
150

패키지 설치

flutter pub add bluetooth_thermal_printer

패키지 개요

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

블루투스 프린터를 통해 영수증을 인쇄하기 위한 플러터 패키지로 현재 안드로이드 전용입니다. 안드로이드 기기에서 열식 프린터와 원활하게 통합하여 직접 인쇄 작업을 생성하고 전송할 수 있습니다. 판매점 시스템, 소매 애플리케이션 및 이동 중 영수증 인쇄가 필요한 키오스크에 적합합니다. 라이브러리는 블루투스 페어링과 데이터 전송을 효율적으로 처리하여 형식화된 텍스트와 이미지를 호환되는 프린터에 보낼 수 있도록 간소화합니다.

사용 사례

  • 포인트 오브 세일 시스템
  • 소매 영수증 인쇄
  • 키오스크 애플리케이션
  • 모바일 주문 처리
  • 재고 관리

주요 기능

  • 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

카테고리

소스 저장소

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

아직 데이터가 없습니다.