Search packages, repositories and app categories

Package detailsv5.4.1

flutter_barcode_sdk

The only Flutter barcode SDK for Android, iOS, Web, Windows, Linux, macOS. Empower developers to build 1D/2D barcode reader and barcode scanner.

AndroidiOSWebWindowsLinux
30-day downloads
3.2K
Likes
150
Pub points
160

Install package

flutter pub add flutter_barcode_sdk

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Flutter Barcode SDK is a cross-platform solution enabling developers to implement 1D and 2D barcode scanning across Android, iOS, Web, Windows, and Linux. It provides a unified API for building robust barcode reader functionality directly within Flutter apps. The SDK supports real-time scanning and integrates seamlessly with existing Flutter projects. Designed for ease of use, it simplifies the process of adding barcode capabilities without platform-specific code. Ideal for inventory management, ticketing, and product lookup applications.

Use cases

  • Inventory tracking
  • Ticket scanning
  • Product information lookup
  • Mobile payments
  • Asset management
  • User authentication

Key features

  • Cross-platform support
  • Real-time scanning
  • 1D and 2D barcode support
  • Easy integration
  • Lightweight and fast
  • Native performance

Suitable for

  • E-commerce apps
  • Logistics software
  • Event ticketing systems
  • Retail POS systems
  • Healthcare data entry

Considerations

  • Requires native permissions on mobile platforms
  • Web support may have limited camera access
  • Performance varies on low-end devices
  • No built-in barcode generation
  • Limited customization options for scanner UI

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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.

Categories

Dependencies

Dependency list 7 items

  • 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

Source repository

Projects using this package

No data available yet.