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

flutter_pin_code_widget 封面
套件詳情v0.1.2

flutter_pin_code_widget

用於建立和檢查本地PIN碼的PIN碼組件,支援彈性設定。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
451
喜歡數
27
Pub 分數
160

安裝套件

flutter pub add flutter_pin_code_widget

套件介紹

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

一個可自訂的 Flutter 小部件,用於建立和驗證本機 PIN 碼,具備彈性的設定選項。專為跨多個平台的安全、使用者友善的 PIN 輸入設計,支援動態輸入長度、樣式與驗證邏輯。適合需要簡單數位代碼的身分驗證流程。此小部件輕量且能順暢整合至需要基於 PIN 的存取控制之應用程式中。

適用情境

  • 使用者驗證
  • 應用鎖功能
  • 安全的數據訪問
  • 雙因素驗證
  • PIN 設定流程
  • 設備解鎖

主要特色

  • 可自訂輸入長度
  • 靈活的樣式選項
  • 本地PIN驗證
  • 跨平台支援
  • 輕鬆整合
  • 螢幕鍵盤處理

適合對象

  • 簡單的認證系統
  • 移動應用安全
  • 基於PIN的登入畫面
  • 注重隱私的應用程式
  • 尋求輕量級解決方案的開發者

使用建議

  • 不支援基於雲端的PIN儲存
  • 僅限數字輸入
  • 無內建生物辨識備用方案
  • 需要手動實現重試邏輯
  • 在沒有額外措施的情況下,不適用於高安全性環境

原始 README

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

  • A Flutter package that helps create a PIN Code screens.
  • Inspired by Android PIN code screen/
  • Widget can use PIN with any length (video below)

Note, that the widget has centerBottomWidget property, for adding one more button on the bottom left.

Usage

  PinCodeWidget(
    minPinLength: 4,
    maxPinLength: 25,
    onChangedPin: (pin) {
      // check the PIN length and check different PINs with 4,5.. length.
    },
    onEnter: (pin, _) {
      // callback user pressed enter
    },
    centerBottomWidget: IconButton(
      icon: const Icon(
        Icons.fingerprint,
        size: 40,
      ),
      onPressed: () {},
    ),
  ),
  1. Full example is here https://github.com/AgoraDesk-LocalMonero/flutter-pin-code-widget/blob/main/example/lib/main.dart
  2. How this package used in the real app https://github.com/AgoraDesk-LocalMonero/agoradesk-app-foss/blob/main/lib/features/auth/screens/pin_code_set_screen.dart

Showcase

Example app

Showcase|width=400px

App from the stores https://agoradesk.com/, the code is here code https://github.com/AgoraDesk-LocalMonero/agoradesk-app-foss/blob/main/lib/features/auth/screens/pin_code_set_screen.dart

Showcase|width=400px

Credits

This is a project by Agoradesk, P2P cryptocurrency trading platform. Created by the team behind LocalMonero, the biggest and most trusted Monero P2P trading platform.

所屬分類

原始碼儲存庫

使用此套件的專案