Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[第 74 期] [自荐项目]:用来解析和生成二维码的flutter插件。 #766

Open
7 tasks done
wu9007 opened this issue Aug 9, 2019 · 0 comments
Open
7 tasks done

Comments

@wu9007
Copy link

wu9007 commented Aug 9, 2019

flutter 扫码插件

地址:github

效果

qr_scan.gif

实现了一下功能

  • 扫描解析条形码
  • 扫描解析二维码
  • 控制闪光灯开关
  • 自动申请权限
  • 解析相册中的二维码和条码
  • 扫码页的闪光灯开关更具当前亮度自动改变
  • 根据字符串生成二维码

使用方式

依赖

将下面的内容加入到 pubspec.yaml 文件:

dependencies:
 qrscan: ^0.2.10

方法使用


// 打开扫码页面对条码或二维码进行解析
String cameraScanResult = await scanner.scan();

// 选择相册中的条码或二维码进行解析
String photoScanResult = await scanner.scanPhoto();

// 生成二维码
Uint8List result = await scanner.generateBarCode('https://github.com/leyan95/qrcode_scanner');
@ruanyf ruanyf changed the title [自荐项目]:用来解析和生成二维码的flutter插件。 [第 74 期] [自荐项目]:用来解析和生成二维码的flutter插件。 Aug 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant