yah0130 / flutter_qrscaner

一个flutter二维码扫描插件

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flutter_qrscaner

LICENSE Badge

功能

  • 打开二维码扫码界面并返回扫码结果(目前只支持android端)

Demo

下载 APK-Demo

用法

1.在 pubspec.yaml 中添加依赖

dependencies:
  flutter_qrscaner: ^0.0.4

2.在AndroidManifest.xml添加相机权限

<uses-permission android:name="android.permission.CAMERA" />

3.在按钮点击事件里调用

import 'package:flutter_qrscaner/flutter_qrscaner.dart';
....
  RaisedButton(
    onPressed: () {
      FlutterQrscaner.startScan().then((value) {
        setState(() {
          _qrContent = value;
        });
      });
    },
    child: Text('开始扫码')),

TODO

  • IOS端支持(IOS不会,求帮助)
  • 闪光灯
  • 识别相册里的二维码
  • 提供更多可供配置的选项参数

About

一个flutter二维码扫描插件

License:Other


Languages

Language:Java 94.0%Language:Ruby 2.8%Language:Dart 1.5%Language:Swift 0.9%Language:Shell 0.4%Language:Objective-C 0.4%