カテゴリー・パッケージ・リポジトリを検索

simple_barcode_scanner のカバー
パッケージ詳細v0.6.1

simple_barcode_scanner

モバイル、Web、WindowsでバーコードとQRコードをスキャンできる simple_barcode_scanner。

AndroidiOSWebWindows
30日間ダウンロード
1万
いいね数
217
Pub ポイント
150

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

flutter pub add simple_barcode_scanner

パッケージ概要

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

Android、iOS、Web、Windows プラットフォームでバーコードおよびQRコードをスキャンする軽量なFlutterパッケージです。複雑な設定なしに、アプリにスキャン機能を簡単に統合できる直感的なインターフェースを提供します。シンプルさを重視して開発されており、ネイティブカメラアクセスを活用し、最小限の構成でリアルタイムスキャンをサポートします。迅速かつ信頼性の高いコード読み取りが必要なアプリケーションに最適です。

用途

  • 在庫管理
  • 支払い処理
  • チケット検証
  • ユーザー認証
  • 製品情報の照会

主な機能

  • クロスプラットフォーム対応
  • シンプルなAPI統合
  • リアルタイムスキャン
  • 軽量な依存関係
  • カメラベースの検出

適している対象

  • モバイルアプリ開発者
  • Webアプリケーション作成者
  • デスクトップアプリ統合者
  • 小売および物流アプリ
  • イベントチケットシステム

注意事項

  • モバイルでのカメラ権限が必要です
  • カスタマイズオプションが限られている
  • オフラインモードのサポートなし
  • デバイスのカメラの品質に依存します
  • プラットフォーム固有の構成が必要になる場合があります

元の 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 件

ソースリポジトリ

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