A Flutter plugin 🛠 to scanning. Ready for Android 🚀 base on ZXing github
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.VIBRATE"/>
Add this to your package's pubspec.yaml file:
dependencies:
qrscan: ^0.3.3
import 'package:qrscan/qrscan.dart' as scanner;
// Select Bar-Code or QR-Code photos for analysis
String photoScanResult = await scanner.scanPhoto();
// Generating QR-Code
Uint8List result = await scanner.generateBarCode('https://github.com/leyan95/qrcode_scanner');
// Scanning the image of the specified path
String barcode = await scanner.scanPath(path);
// Parse to code string with uint8list
File file = await ImagePicker.pickImage(source: ImageSource.camera);
Uint8List bytes = file.readAsBytesSync();
String barcode = await scanner.scanBytes(uint8list);
We would ❤️ to see your contribution!
Distributed under the MIT license. See LICENSE
for more information.
Created by Shusheng.