flutter_camera_qrcode_scanner 1.0.2 copy "flutter_camera_qrcode_scanner: ^1.0.2" to clipboard
flutter_camera_qrcode_scanner: ^1.0.2 copied to clipboard

PlatformAndroidiOS
outdated

A lightweight Flutter camera widget for QR code scanning and barcode scanning, supporting Android and iOS.

Flutter QR Code Scanner #

A lightweight Flutter QR code scanner plugin implemented with Dynamsoft Camera Enhancer and Dynamsoft Barcode Reader.

Supported Platforms #

  • Android
  • iOS

Mobile Camera and Barcode SDK Version #

  • Dynamsoft Camera Enhancer 2.1.1
  • Dynamsoft Barcode Reader 8.9.1

Build Configuration #

Android #

Change the minimum Android sdk version to 21 (or higher) and change the compile sdk version to 31 (or higher) in your android/app/build.gradle file.

minSdkVersion 21
compileSdkVersion 31

iOS #

Add camera access permission to ios/Runner/Info.plist:

<key>NSCameraUsageDescription</key>
<string>Can I use the camera please?</string>
<key>NSMicrophoneUsageDescription</key>
<string>Can I use the mic please?</string>

Try Real-time QR Code Scanning #

cd example
flutter run
Flutter QR Code scanner

Usage #

  • Create a QR code scanner view:

    ScannerViewController? controller;
    ScannerView(onScannerViewCreated: onScannerViewCreated);
    void onScannerViewCreated(ScannerViewController controller) {
        setState(() {
          this.controller = controller;
        });
        controller.scannedDataStream.listen((results) {
            
        });
      }
    
  • Use a valid license to activate QR code detection API.

    controller.setLicense('LICENSE-KEY');
    
  • Use controller to start and stop real-time QR code scanning.

    controller.startScanning();
    controller.stopScanning();
    
12
likes
140
pub points
74%
popularity

Publisher

verified publisheryushulx.me

A lightweight Flutter camera widget for QR code scanning and barcode scanning, supporting Android and iOS.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_camera_qrcode_scanner