搜尋套件、儲存庫與 APP 分類

套件詳情v5.4.1

flutter_barcode_sdk

適用於 Android、iOS、Web、Windows、Linux、macOS 的唯一 Flutter 條碼 SDK。賦能開發者建構一維/二維條碼讀取器與條碼掃描儀。

AndroidiOSWebWindowsLinux
近 30 天下載
3230
喜歡數
150
Pub 分數
160

安裝套件

flutter pub add flutter_barcode_sdk

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

Flutter 條碼 SDK 是一個跨平台解決方案,讓開發者能在 Android、iOS、Web、Windows 和 Linux 上實現一維和二維條碼掃描。它提供統一的 API,可在 Flutter 應用中直接建構穩健的條碼讀取功能。該 SDK 支援即時掃描,並能與現有的 Flutter 專案無縫整合。設計上注重易用性,簡化了添加條碼功能的過程,無需撰寫平台特定程式碼。適用於庫存管理、票務及產品查詢等應用。

適用情境

  • 庫存追蹤
  • 票務掃描
  • 產品資訊查詢
  • 移動支付
  • 資產管理
  • 使用者身分驗證

主要特色

  • 跨平台支援
  • 即時掃描
  • 1D 和 2D 條碼支援
  • 輕鬆整合
  • 輕巧且快速
  • 原生效能

適合對象

  • 電子商務應用
  • 物流軟體
  • 事件票務系統
  • 零售POS系統
  • 醫療數據輸入

使用建議

  • 需要移動平台的原生權限
  • Web 支援可能具有有限的相機存取權限
  • 效能因低階裝置而異
  • 無內建條碼產生
  • 掃描儀UI的自定義選項有限

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

flutter_barcode_sdk

pub package

A cross-platform Flutter plugin for barcode reading and scanning, powered by the Dynamsoft Barcode Reader SDK. Supports Android, iOS, Web, Windows, and Linux.

Repository Structure

This is a monorepo for the flutter_barcode_sdk federated plugin, following the Flutter camera package pattern. All packages are siblings under packages/ and are published to pub.dev independently:

Package Description
flutter_barcode_sdk App-facing package. Add this to your app.
flutter_barcode_sdk_platform_interface Platform interface contract and shared data models.
flutter_barcode_sdk_android Android implementation.
flutter_barcode_sdk_macos macOS implementation (universal-2).
flutter_barcode_sdk_windows Windows implementation.
flutter_barcode_sdk_linux Linux implementation.
flutter_barcode_sdk_web Web implementation with a self-hosted JS/WASM bundle — no CDN <script> tag needed.

The platform packages are endorsed by the app-facing package, so app developers only need to depend on flutter_barcode_sdk.

Related Packages

  • flutter_capture_vision — same six-platform architecture, plus MRZ (passport/ID) recognition and document boundary detection.
  • flutter_lite_camera — lightweight camera preview and frame capture on all six platforms; the bundled example apps use it as the frame source for live scanning.

Development

The repository uses a pub workspace — run flutter pub get once at the repository root and all packages resolve local dependencies automatically.

flutter pub get        # once at the repo root
flutter analyze        # per package: cd packages/<pkg> && flutter analyze
flutter test

Each package has its own example/ app for standalone testing:

cd packages/flutter_barcode_sdk_windows/example
flutter run -d windows

# macOS (requires Xcode + CocoaPods, macOS 12+)
cd packages/flutter_barcode_sdk_macos/example
flutter run -d macos

Publishing

Each package is published independently from its own directory, with its own version:

cd packages/flutter_barcode_sdk_web
dart pub publish       # dry run: dart pub publish --dry-run

The GitHub Actions workflow .github/workflows/publish.yml publishes automatically when a tag of the form <package-name>-v<version> is pushed, e.g. flutter_barcode_sdk_web-v1.2.3, or manually via Actions → Publish to pub.dev → Run workflow.

Because each platform package ships its own native binaries, each package gets the full 100 MB pub.dev size limit independently.

License

See LICENSE.

所屬分類

依賴

依賴清單 7 項

  • flutter_barcode_sdk_android^1.0.3
  • flutter_barcode_sdk_ios^1.0.6
  • flutter_barcode_sdk_linux^1.0.3
  • flutter_barcode_sdk_macos^1.0.5
  • flutter_barcode_sdk_platform_interface^1.0.0
  • flutter_barcode_sdk_web^1.1.2
  • flutter_barcode_sdk_windows^1.0.3

原始碼儲存庫

使用此套件的專案

暫無相關資料。