분류, 패키지 및 저장소 검색

simple_barcode_scanner 표지
패키지 상세v0.6.1

simple_barcode_scanner

모바일, 웹 및 윈도우에서 바코드와 QR 코드를 스캔할 수 있는 simple_barcode_scanner입니다.

AndroidiOSWebWindows
30일 다운로드
1만
좋아요
217
Pub 점수
150

패키지 설치

flutter pub add simple_barcode_scanner

패키지 개요

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

안드로이드, iOS, 웹 및 윈도우 플랫폼에서 바코드와 QR 코드를 스캔할 수 있는 가벼운 플러터 패키지입니다. 복잡한 설정 없이 앱에 스캔 기능을 간단한 인터페이스로 통합할 수 있습니다. 단순함을 우선시하여 네이티브 카메라 접근을 활용하고 최소한의 구성으로 실시간 스캔을 지원합니다. 빠르고 신뢰성 있는 코드 읽기 기능이 필요한 애플리케이션에 적합합니다.

사용 사례

  • 재고 관리
  • 결제 처리
  • 티켓 검증
  • 사용자 인증
  • 제품 정보 조회

주요 기능

  • 크로스 플랫폼 지원
  • 간단한 API 통합
  • 실시간 스캔
  • 경량 종속성
  • 카메라 기반 감지

적합한 대상

  • 모바일 앱 개발자
  • 웹 애플리케이션 제작자
  • 데스크톱 앱 통합자
  • 소매 및 물류 앱
  • 이벤트 티켓팅 시스템

고려 사항

  • 모바일에서 카메라 권한이 필요합니다
  • 제한된 사용자 정의 옵션
  • 오프라인 모드 지원 없음
  • 기기 카메라 품질에 따라 다릅니다
  • 플랫폼별 구성이 필요할 수 있습니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

✊ We stand in solidarity with the Tibetan people in their struggle for freedom and cultural preservation. Learn more at Free Tibet.

simple_barcode_scanner

simple_barcode_scanner that let you scan barcode and qr code in mobile,web and windows.

Demo

Android IOS
drawing drawing
Window Web
drawing drawing

Credit

  • This plugin is built upon the flutter_barcode_scanner for Android and iOS. Since the original plugin is no longer actively maintained, I have forked the repository and implemented additional features on top of it. Special thanks to Amol Gangadhare for his work.

Features

  • Scan barcode in mobile devices using flutter_barcode_scanner
  • Scan barcode in web/window using html5-qrcode package

Installation and configuration

Getting started

simple_barcode_scanner: ^0.3.1

Import the library:

import 'package:simple_barcode_scanner/simple_barcode_scanner.dart';

Usage

  1. To scan barcode
   ElevatedButton(
              onPressed: () async {

String? res = await SimpleBarcodeScanner.scanBarcode(
                  context,
                  barcodeAppBar: const BarcodeAppBar(
                    appBarTitle: 'Test',
                    centerTitle: false,
                    enableBackButton: true,
                    backButtonIcon: Icon(Icons.arrow_back_ios),
                  ),
                  isShowFlashIcon: true,
                  delayMillis: 2000,
                  cameraFace: CameraFace.front,
                );
                setState(() {
                  result = res as String;
                });
              },
              child: const Text('Open Scanner'),
            )
  1. To stream barcode
   ElevatedButton(
              onPressed: () async {

                SimpleBarcodeScanner.streamBarcode(
                  context,
                  barcodeAppBar: const BarcodeAppBar(
                    appBarTitle: 'Test',
                    centerTitle: false,
                    enableBackButton: true,
                    backButtonIcon: Icon(Icons.arrow_back_ios),
                  ),
                  isShowFlashIcon: true,
                  delayMillis: 2000,
                ).listen((event) {
                  print("Stream Barcode Result: $event");
                });
              },
              child: const Text('Open Scanner'),
            )
  1. To Scan with widget(Android Only)
   SizedBox(
                width: 200,
                height: 200,
                child: SimpleBarcodeScanner(
                  scaleHeight: 200,
                  scaleWidth: 400,
                  onScanned: (code) {
                    setState(() {
                      result = code;
                    });
                  },
                  continuous: true,
                  onBarcodeViewCreated: (BarcodeViewController controller) {
                    this.controller = controller;
                  },
                )),

Todo

  • Flash and switch camera are only available in mobile devices
  • Enhancement

Note

Feel free to fork and send pull request.

  • iOS support may be delayed as I currently do not have access to an iOS device for testing. Contributions and testing help from the community are welcome!
  • If you have any questions, feedback or ideas,You can create an issue. If you enjoy this project, I'd appreciate your 🌟 on GitHub.

You can also buy me a cup of coffee

publish

dart pub publish --dry-run
dart pub publish

카테고리

의존성

의존성 목록 5 개

소스 저장소

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