All Projects → SiriDx → qrcode

SiriDx / qrcode

Licence: MIT License
A flutter plugin for scanning QR codes. Use AVCaptureSession in iOS and zxing in Android.

Programming Languages

dart
5743 projects
objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to qrcode

Qr Code Scanner
📠 A simple, fast and useful progressive web application
Stars: ✭ 982 (+1323.19%)
Mutual labels:  qrcode, qr-code, qr, qrcode-scanner
Zxinglite
🔥 ZXing的精简版,优化扫码和生成二维码/条形码,内置闪光灯等功能。扫描风格支持:微信的线条样式,支付宝的网格样式。几句代码轻松拥有扫码功能 ,ZXingLite让集成更简单。(扫码识别速度快如微信)
Stars: ✭ 2,117 (+2968.12%)
Mutual labels:  qrcode, qr-code, zxing, qrcode-scanner
quagga2-reader-qr
Quagga2 sample external reader for QR codes
Stars: ✭ 20 (-71.01%)
Mutual labels:  qrcode, qr-code, qr, qrcode-scanner
Qrscanner
A simple QR Code scanner framework for iOS. Provides a similar scan effect to ios13.
Stars: ✭ 134 (+94.2%)
Mutual labels:  qrcode, qr, qrcode-scanner
Vue Qrcode Reader
A set of Vue.js components for detecting and decoding QR codes.
Stars: ✭ 1,240 (+1697.1%)
Mutual labels:  qrcode, qr-code, qrcode-scanner
Awesome Qr.js
An awesome QR code generator written in JavaScript.
Stars: ✭ 1,247 (+1707.25%)
Mutual labels:  qrcode, qr-code, qr
Bardecoder
Detect and decode QR Codes, written in 100% Rust.
Stars: ✭ 145 (+110.14%)
Mutual labels:  qrcode, qr-code, qrcode-scanner
React Qr Svg
React component for rendering SVG QR codes
Stars: ✭ 134 (+94.2%)
Mutual labels:  qrcode, qr-code, qr
Jsqr
A pure javascript QR code reading library. This library takes in raw images and will locate, extract and parse any QR code found within.
Stars: ✭ 2,722 (+3844.93%)
Mutual labels:  qrcode, qr-code, qr
paper-store
Cold store small files on paper as QR codes -- PGP keys, Bitcoin keys, Tox keys or any other small files in general.
Stars: ✭ 28 (-59.42%)
Mutual labels:  qrcode, qr-code, qr
Instascan
HTML5 QR code scanner using your webcam
Stars: ✭ 2,657 (+3750.72%)
Mutual labels:  qrcode, qr-code, zxing
vk-qr
VK QR Code generator library
Stars: ✭ 43 (-37.68%)
Mutual labels:  qrcode, qr-code, qr
Scannermapp
A QR-code and barcode acanner app built in Delphi using ZXing and TFrameStand
Stars: ✭ 65 (-5.8%)
Mutual labels:  qrcode, zxing, qrcode-scanner
Qrbtf
An art QR code (qrcode) beautifier. 艺术二维码生成器。https://qrbtf.com
Stars: ✭ 1,391 (+1915.94%)
Mutual labels:  qrcode, qr-code, qr
Qr Ascii
A small library to generate QR codes with ascii
Stars: ✭ 63 (-8.7%)
Mutual labels:  qrcode, qr-code, qr
qrcodescan.in
📠 A simple, fast, and useful progressive web application.
Stars: ✭ 144 (+108.7%)
Mutual labels:  qrcode, qr, qrcode-scanner
Tesseract Ocr Scanner
基于Tesseract-OCR实现自动扫描识别手机号
Stars: ✭ 622 (+801.45%)
Mutual labels:  qrcode, zxing, qrcode-scanner
Czxing
C++ port of ZXing and ZBar for Android.
Stars: ✭ 854 (+1137.68%)
Mutual labels:  qrcode, zxing, qrcode-scanner
Jsqrscanner
JavaScript QR Code scanner for HTML5 supporting browsers
Stars: ✭ 212 (+207.25%)
Mutual labels:  qrcode, zxing, qrcode-scanner
nova-qrcode-field
A Laravel Nova field to generate QR Code
Stars: ✭ 28 (-59.42%)
Mutual labels:  qrcode, qr-code, qr

qrcode

A flutter plugin for scanning QR codes. Use AVCaptureSession in iOS and zxing in Android.

Usage

Use this package as a library

Add dependency

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

dependencies:
  qrcode: ^1.0.5

Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Import it

Now in your Dart code, you can use:

import 'package:qrcode/qrcode.dart';

Basic

class _MyAppState extends State<MyApp> {
  QRCaptureController _captureController = QRCaptureController();

  bool _isTorchOn = false;

  @override
  void initState() {
    super.initState();

    _captureController.onCapture((data) {
      print('onCapture----$data');
    });
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Stack(
          alignment: Alignment.center,
          children: <Widget>[
            QRCaptureView(controller: _captureController),
            Align(
              alignment: Alignment.bottomCenter,
              child: _buildToolBar(),
            )
          ],
        ),
      ),
    );
  }

  Widget _buildToolBar() {
    return Row(
          mainAxisSize: MainAxisSize.max,
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            FlatButton(
              onPressed: () {
                _captureController.pause();
              },
              child: Text('pause'),
            ),
            FlatButton(
              onPressed: () {
                if (_isTorchOn) {
                  _captureController.torchMode = CaptureTorchMode.off;
                } else {
                  _captureController.torchMode = CaptureTorchMode.on;
                }
                _isTorchOn = !_isTorchOn;
              },
              child: Text('torch'),
            ),
            FlatButton(
              onPressed: () {
                _captureController.resume();
              },
              child: Text('resume'),
            ),
          ],
        );
  }
}

Integration

iOS

To use on iOS, you must add the following to your Info.plist

<key>NSCameraUsageDescription</key>
<string>Camera permission is required for qrcode scanning.</string>
<key>io.flutter.embedded_views_preview</key>
<true/>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].