0 purchases
qu qr code scanner
QUQRCodeScanner #
二维码扫码控件
可以从相册选择二维码照片进行扫描
支持计划 #
❌ Android
✅ iOS
使用 #
dependencies:
qu_qr_code_scanner
copied to clipboard
导入 #
import 'package:qu_qr_code_scanner/qu_qr_code_scanner.dart';
copied to clipboard
具体使用 #
String _qrResult = '';
Future<void> getQrResultState() async {
String result;
try {
result = await QuQrCodeScanner.getScanResult ?? '';
} on PlatformException {
result = '';
/// 处理错误情况
}
if (!mounted) return;
setState(() {
_qrResult = result;
});
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.