qhu91it / flutter_qr_reader

QR code (scan / picture) recognition (AndroidView / UiKitView)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flutter_qr_reader

QR code (scan code / picture) recognition (AndroidView/UiKitView)

DEMO

demo

demo

Getting Started

import 'package:flutter_qr_reader/flutter_qr_reader.dart';


// 嵌入视图
QrReaderView(
  width: 320,
  height: 350,
  callback: (container) {},
)
// 打开手电筒
..setFlashlight
// 开始扫码
..startCamera
// 结束扫码
..stopCamera

For IOS

Opt-in to the embedded views preview by adding a boolean property to the app's Info.plist file with the key io.flutter.embedded_views_preview and the value YES.

<key>io.flutter.embedded_views_preview</key>
<string>YES</string>

And you will need provide the description of camera's permission to work properly, otherwise will crash your app.

  <key>NSCameraUsageDescription</key>
	<string>The porpuse explaining why you will use the camera</string>

About

QR code (scan / picture) recognition (AndroidView / UiKitView)

License:MIT License


Languages

Language:Java 75.3%Language:Dart 9.7%Language:Objective-C 9.5%Language:Ruby 3.6%Language:Dockerfile 1.2%Language:Shell 0.7%