qr_code_dart_scan
0.14.0, released 3 months ago by rafaelbarbosatec.com
Flutter widget for live or picture‑based QR code scanning using a pure‑Dart decoder.
What it does
Provides a camera preview widget that captures frames and decodes QR codes (and other supported formats) on iOS and Android. Supports live scanning, picture‑take scanning, and format filtering.
AI-written summary of version 0.14.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a QR/barcode scanner without native ML libraries
- You prefer a pure‑Dart solution that works on both iOS and Android
- You want to customize scanning parameters like crop area or orientation
Skip it when
- You require Web or desktop scanning support
- You need high‑performance real‑time scanning in debug mode
- You depend on advanced ML features like face detection
Strengths
- Pure‑Dart decoder avoids native SDKs
- Supports many 1D/2D formats beyond QR
- Allows format filtering and custom cropping
Weaknesses
- Performance lower in debug mode
- No Web or desktop support
- Relies on camera plugin bugs (rotation)
Setup
- Kind
- Flutter widgets
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 6
Add iOS camera/microphone usage descriptions in Info.plist and set minSdkVersion 21 on Android; may need dependency_override for camera_android_camerax.
```dart
import 'package:flutter/material.dart';
import 'package:qr_code_dart_scan/qr_code_dart_scan.dart';
class ScanPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: QRCodeDartScanView(
onCapture: (result) {
debugPrint('Scanned: ${result.text}');
},
),
);
}
}
```Alternatives
Packages that do the same job and could replace qr_code_dart_scan.
- mobile_scanner
Native ML‑based scanning with broader platform support including Web
95Compare - google_mlkit_barcode_scanning
High‑performance on‑device ML scanning with extensive format support
94Compare
Works with
Packages commonly used together with qr_code_dart_scan: ones it builds on, ones built on it, and its own family.
- imageqr_code_dart_scan depends on itPure Dart library to load, manipulate, encode, and decode various image formats.
- equatableqr_code_dart_scan depends on itProvides value‑based equality for Dart objects without manual == and hashCode.
- cameraqr_code_dart_scan depends on itFlutter plugin to preview, capture photos/video and stream camera images.
- camera_android_cameraxqr_code_dart_scan depends on itAndroid camera implementation using CameraX library