qrscan 0.2.17

Flutter Android iOS

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 🚀

github

qrscan.gif

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: ^0.2.17

Scan Usage example #

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

String cameraScanResult = await scanner.scan();

Supported #

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

Features #

  • Generate BR-CODE
  • Support IOS

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.

147
likes
100
pub points
95%
popularity

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

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

leyansorosame@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on qrscan