v0.2.0
qr_code_tools
用于 iOS 和 Android 的 Flutter 插件,用于解码二维码。
30喜欢 3400近 30 天下载140Pub 分数
AndroidiOS
用于 iOS 和 Android 的 Flutter 插件,用于解码二维码。
以下为英文项目原文快照,最新内容请访问 GitHub。
The Flutter plugin for iOS and Android to decoding QR codes.
First, add qr_code_tools as a dependency in your pubspec.yaml file.
Add one rows to the ios/Runner/Info.plist:
Privacy - Photo Library Usage Description and a usage description.Or in text format add the key:
<key>NSPhotoLibraryUsageDescription</key>
<string>Can I use the photo library please?</string>
Nothing to do
import 'package:qr_code_tools/qr_code_tools.dart';
String _data;
/// decode from local file
Future decode(String file) async {
String data = await QrCodeToolsPlugin.decodeFrom(file);
setState(() {
_data = data;
});
}
For a more elaborate usage example see here.
依赖清单 3 项
{"sdk":"flutter"}{"sdk":"flutter"}^5.0.0先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗