搜尋套件、儲存庫與 APP 分類

套件詳情v0.2.0

qr_code_tools

用於 iOS 和 Android 的 Flutter 外掛程式,用於解碼 QR 碼。

AndroidiOS
近 30 天下載
3400
喜歡數
30
Pub 分數
140

安裝套件

flutter pub add qr_code_tools

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

qr_code_tools 是一個專為 iOS 和 Android 設計的 Flutter 插件,可在行動應用程式中實現 QR 碼解碼。它提供了一個簡單的介面,透過裝置的相機掃描並提取 QR 碼中的資料。此外,該插件輕巧且經過效能優化,適用於需要快速且可靠的 QR 碼識別功能的應用程式。支援即時掃描與影像式解碼,確保在不同使用情境下的彈性。設計上著重於簡潔,能順暢整合至 Flutter 專案中。

適用情境

  • 移動庫存追蹤
  • 活動票務掃描
  • 透過QR碼分享聯絡人
  • 數位支付啟動
  • 產品資訊查詢

主要特色

  • 即時QR掃描
  • 基於圖像的二維碼解碼
  • 跨平台支援(iOS 與 Android)
  • 簡單 API 結合
  • 輕量且快速的性能

適合對象

  • 零售和電子商務應用
  • 事件管理工具
  • 物流和資產追蹤
  • 客戶參與平台
  • 行動支付系統

使用建議

  • 兩個平台都需要相機權限
  • 可能需要為攝像頭預覽添加額外的使用者介面
  • 性能取決於設備攝像頭的品質
  • 僅限二維碼解碼(不支援產生)
  • 對格式錯誤的代碼沒有內建的錯誤處理

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

QR Code Tools

Build Status pub package

The Flutter plugin for iOS and Android to decoding QR codes.

Installation

First, add qr_code_tools as a dependency in your pubspec.yaml file.

iOS

Add one rows to the ios/Runner/Info.plist:

  • one with the key 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>
Android

Nothing to do

Example

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.

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。