Skip to content
pubscout

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.

$ flutter pub add qr_code_dart_scan
Source repository

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.

Works with

Packages commonly used together with qr_code_dart_scan: ones it builds on, ones built on it, and its own family.