FLUTTER ECOSYSTEM

PopcodeMobile/barcode-finder

PopcodeMobile/barcode-finder open-source repository details.

barcode-finder のプロジェクト画像
Stars
6
Forks
9
最終プッシュ(UTC)
2026/03/19
プロジェクト状態
公開中
Popcode GitHub avatar
GITHUB Organization

Popcode ↗

Brazil
言語SwiftJavaDartRubyPythonObjective-CKotlin

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 2 件
  • flutter{"sdk":"flutter"}
  • flutter_test開発用{"sdk":"flutter"}

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

README を開く / 閉じる

Barcode Finder

A flutter plugin for barcode scanner that works on both iOS and Android. Provides functionality for scanning several formats of 1D and 2D barcodes.

It uses ML-kit on Android and iOS to detect codes from PDF and Image files.

Example using app

Getting Started

Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  barcode_finder: latest version
Android Platform

API 21 is the minimum supported for Android.

Usage

Lets take a look at how to use BarcodeFinder to scan any PDF or image File using File Picker as a auxiliar plugin.

Future<String?> scanFile() async {
    // Used to pick a file from device storage
    final pickedFile = await FilePicker.platform.pickFiles();
    if (pickedFile != null) {
        final filePath = pickedFile.files.single.path;
        if (filePath != null) {
            return await BarcodeFinder.scanFile(path: path);
        }
    }
}

Make sure you are passing a valid and permissioned path to BarcodeFinder.scanFile, in the exemple above, the package FilePicker provides it for us.