flutter_qrscaner 1.0.0 copy "flutter_qrscaner: ^1.0.0" to clipboard
flutter_qrscaner: ^1.0.0 copied to clipboard

A QR scan plugin based on zxing for android,it is very simple to use,only need one line code.This plugin is not work for ios,because i have no idea on object c or swift.

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不会,求帮助)
  • 闪光灯
  • 识别相册里的二维码
  • 提供更多可供配置的选项参数
4
likes
25
pub points
18%
popularity

Publisher

unverified uploader

A QR scan plugin based on zxing for android,it is very simple to use,only need one line code.This plugin is not work for ios,because i have no idea on object c or swift.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_qrscaner