flutter_barcode_sdk
5.4.1, released 3 weeks ago by yushulx.me
Cross‑platform Flutter plugin for reading 1D/2D barcodes from images or raw frames.
What it does
It wraps the Dynamsoft Barcode Reader SDK to decode a wide range of barcode symbologies on Android, iOS, Web, Windows, macOS, and Linux. The plugin is camera‑agnostic, so you feed it image files or pixel buffers from any camera source.
AI-written summary of version 5.4.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need barcode scanning on multiple platforms from a single code base
- You already use a custom camera plugin and only need decoding logic
Skip it when
- You require a fully integrated camera‑preview + scanning solution out of the box
- You cannot obtain a Dynamsoft license key
Strengths
- Supports all major platforms including web and desktop
- Broad set of supported barcode formats
- Decoding runs on background threads, not blocking UI
Weaknesses
- Requires a paid license for production use
- Additional native setup (permissions, resource bundling)
- Not a complete camera solution, must be paired with another plugin
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 7
Add Dynamsoft license key in code; Android minSdk 21; iOS/macOS add camera usage keys and entitlements; macOS bundle Dynamsoft Templates/Models resources; Web serve over HTTPS for WASM
import 'package:flutter_barcode_sdk/flutter_barcode_sdk.dart';
final reader = FlutterBarcodeSdk();
await reader.setLicense('YOUR-LICENSE-KEY');
await reader.init();
List<BarcodeResult> results = await reader.decodeFile('path/to/image.png');
for (var r in results) {
print('${r.format}: ${r.text}');
}Alternatives
Packages that do the same job and could replace flutter_barcode_sdk.
- mobile_scanner
Provides an integrated camera preview and barcode scanning without a separate license
95Compare - google_mlkit_barcode_scanning
Free on‑device ML Kit barcode scanner for Android and iOS
94Compare - barcode
Pure Dart barcode generation/reading, no native dependencies
66Compare