Giter Site home page Giter Site logo

yhyuan / qrcode_scanner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wu9007/qrcode_scanner

0.0 2.0 0.0 18.81 MB

🛠 Flutter QR code scanner plugin.

License: MIT License

Kotlin 1.22% Swift 2.81% Objective-C 1.08% Dart 36.38% Ruby 1.99% Java 56.51%

qrcode_scanner's Introduction

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

  • 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
  • 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.

qrcode_scanner's People

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.