Flutter二维码扫描插件
一个功能丰富的Flutter插件,支持扫描解析条形码和二维码、控制闪光灯、自动申请权限、解析相册中的二维码、根据字符串生成二维码等功能。
• Copy the embed code to showcase this product on your website
• Share on X to spread the word about this amazing tool
一个功能丰富的Flutter插件,支持扫描解析条形码和二维码、控制闪光灯、自动申请权限、解析相册中的二维码、根据字符串生成二维码等功能。
• Copy the embed code to showcase this product on your website
• Share on X to spread the word about this amazing tool
jsondependencies: qrscan: ^0.2.10
### 方法使用dartimport 'package:qrscan/qrscan.dart' as scanner;// 打开扫码页面对条码或二维码进行解析String cameraScanResult = await scanner.scan();// 选择相册中的条码或二维码进行解析String photoScanResult = await scanner.scanPhoto();// 生成二维码Uint8List result = await scanner.generateBarCode('https://github.com/leyan95/qrcode_scanner');