qrscan

Creator: coderz1093

Last updated:

Add to Cart

Description:

qrscan

Language: English | 中文简体
QR Code Scanner #


A Flutter plugin 🛠 to scanning. Ready for Android 🚀
github
Permission: #
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
copied to clipboard
Installation #
Add this to your package's pubspec.yaml file:
dependencies:
qrscan: ^0.3.3
copied to clipboard
Scan Usage example #
import 'package:qrscan/qrscan.dart' as scanner;

String cameraScanResult = await scanner.scan();
copied to clipboard
Supported #

Scan BR-CODE
Scan QR-CODE
Control the flash while scanning
Apply for camera privileges
Scanning BR-CODE or QR-CODE in albums
Parse to code string with uint8list
Scanning the image of the specified path
Display the switch button of the flashlight according to the light intensity
Generate QR-CODE

Features #

Generate BR-CODE

TODO #

[] Support IOS (example builds, but invoking scanner does not return)
[] Provide iOS setup documentation, if necessary

Demo App #

Select Bar-Code or QR-Code photos for analysis and Generating QR-Code #
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);
copied to clipboard
Contribute #
We would ❤️ to see your contribution!
License #
Distributed under the MIT license. See LICENSE for more information.
About #
Created by Shusheng.
Thanks #

Thanks JetBrains Offer Open Source Free License

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.