v0.2.0
qr_code_tools
用於 iOS 和 Android 的 Flutter 外掛程式,用於解碼 QR 碼。
30喜歡 3400近 30 天下載140Pub 分數
AndroidiOS
用於 iOS 和 Android 的 Flutter 外掛程式,用於解碼 QR 碼。
以下為英文專案原文快照,最新內容請造訪 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 ↗