flutter_camera_qrcode_scanner 0.0.1 flutter_camera_qrcode_scanner: ^0.0.1 copied to clipboard
A lightweight Flutter widget for QR code scanning.
Flutter QR Code Scanner #
A lightweight Flutter QR code scanner plugin implemented with Dynamsoft Camera Enhancer and Dynamsoft Barcode Reader.
Supported Platforms #
- Android
Build Configuration #
Change the minimum Android sdk version to 21 (or higher) in your android/app/build.gradle file.
minSdkVersion 21
Try Real-time QR Code Scanning #
cd example
flutter run
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();