qrscan_plus 1.0.0 copy "qrscan_plus: ^1.0.0" to clipboard
qrscan_plus: ^1.0.0 copied to clipboard

A Plug-in for dart, which help you scanning barcode and qrcode with android device.

Language: English

QR Code Scanner #

License Pub

A Flutter plugin πŸ›  to scanning. Ready for Android πŸš€

This project is a fork of the original qrscan plugin, which I have updated to be compatible with the latest Flutter and Android versions. Thanks to the original author for their amazing work!

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"/>

Installation #

Add this to your package's pubspec.yaml file:

dependencies:
 qrscan_plus: any

Scan Usage example #

import 'package:qrscan_plus/qrscan_plus.dart' as scanner;

String cameraScanResult = await scanner.scan();

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 #

qrscan.gif

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);

Contribute #

We would ❀️ to see your contribution!

License #

Distributed under the MIT license. See LICENSE for more information.

About #

Created by Shusheng.

Thanks #

2
likes
0
points
22
downloads

Publisher

verified publishermubashir.infinityfree.me

Weekly Downloads

A Plug-in for dart, which help you scanning barcode and qrcode with android device.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

flutter

More

Packages that depend on qrscan_plus

Packages that implement qrscan_plus