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

套件詳情v2.0.0

qr_scanner_with_effect

一個帶有掃描效果的QR碼掃描Flutter套件。

AndroidiOS
近 30 天下載
116
喜歡數
27
Pub 分數
160

安裝套件

flutter pub add qr_scanner_with_effect

套件介紹

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

一個 Flutter 套件,提供帶有動畫掃描效果的 QR 碼掃描功能,提升使用者在條碼與 QR 碼偵測過程中的體驗。專為 Android 與 iOS 打造,可無縫整合至 Flutter 應用程式中,提供即時視覺反饋,顯示掃描狀態。此套件輕量級,專為尋求生動掃描介面且無需複雜設定的開發者設計。它利用原生相機存取,並包含流暢動畫來指示掃描進度與成功。

適用情境

  • 零售應用中的即時二維碼掃描
  • 事件票務驗證帶有視覺反饋
  • 帶有互動式掃描的庫存管理
  • 需要清晰掃描指示的移動支付系統

主要特色

  • 動畫掃描效果
  • 跨平台支援(Android 與 iOS)
  • 與 Flutter 的簡單整合
  • 即時視覺反饋
  • 輕便高效
  • 基於攝影機的二維碼檢測

適合對象

  • 開發互動式掃描功能的開發者
  • 需要引人入勝的使用者體驗的應用程式
  • 零售和活動管理工具
  • 快速二維碼擷取工具

使用建議

  • 需要目標設備的相機權限
  • 可能影響低階硬體的效能
  • 動畫樣式自訂有限
  • 依賴於穩定的相機存取和照明條件

原始 README

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

qr_scanner_with_effect

A Flutter widget that will use for scanning QR Code and it also has scanning effect.

QR Scanner with Effect

pub package GH Actions

Features

Parameter Definition
GlobalKey<State<StatefulWidget>> qrKey (Required) [qrKey] uniquely identify elements
void Function(QRViewController) onQrScannerViewCreated (Required) [onQRViewCreated] gets called when the view is created
EdgeInsetsGeometry overlayMargin (Predefined) use [overlayMargin] to provide a margin to [overlay]
CameraFacing cameraFacing (Predefined) Set which camera to use on startup.[cameraFacing] can either be CameraFacing.front or CameraFacing.back
void Function(QRViewController, bool)? onPermissionSet (Optional) Calls the provided [onPermissionSet] callback when the permission is set
List<BarcodeFormat> formatsAllowed (Predefined) Use [formatsAllowed] to specify which formats needs to be scanned
Color qrOverlayBorderColor (Required) [qrOverlayBorderColor] is used for giving color of qr overlay border
double qrOverlayBorderRadius (Predefined) [qrOverlayBorderRadius] is used for giving border radius of qr overlay border
double qrOverlayBorderWidth (Predefined) [qrOverlayBorderWidth] it defines the width of the qr overlay border
double qrOverlayBorderLength (Predefined) [qrOverlayBorderLength] it defines the length of the qr overlay border
Gradient? effectGradient (Optional) use [effectGradient] for effect animated color from begin to top
double effectWidth (Predefined) [effectWidth] define the width of the effect
bool isScanComplete (Predefined) [isScanComplete] is used for remove effect after scanning complete
Color? effectColor (Optional) use [effectColor] for color of the effect
double? cutOutSize
double? cutOutHeight
double? cutOutWidth
double cutOutBottomOffset

Demo

ezgif com-optimize

Installation

Add dependency for package on your pubspec.yaml:

    dependencies:
      qr_scanner_with_effect: latest

or

flutter pub add qr_scanner_with_effect

Usage

QrScannerWithEffect(
  isScanComplete: isComplete,
  qrKey: qrKey,
  onQrScannerViewCreated: onQrScannerViewCreated,
  qrOverlayBorderColor: Colors.redAccent,
  cutOutSize: (MediaQuery.of(context).size.width < 300 || MediaQuery.of(context).size.height < 400) ? 250.0 : 300.0,
  onPermissionSet: (ctrl, p) => onPermissionSet(context, ctrl, p),
  effectGradient: const LinearGradient(
    begin: Alignment.topCenter,
    end: Alignment.bottomCenter,
    stops: [0.0, 1],
    colors: [
      Colors.redAccent,
      Colors.redAccent,
    ],
  ),
)

Additional information

This package is built on "qr_code_scanner". When we use "qr_scanner_with_effect" package than we also use "qr_code_scanner" package for fetching its controller.

所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。