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

custom_pin_screen 封面
套件詳情v1.0.1

custom_pin_screen

一個 Flutter 套件,可為您的行動應用程式新增具有自訂鍵盤和密碼的畫面。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
429
喜歡數
49
Pub 分數
160

安裝套件

flutter pub add custom_pin_screen

套件介紹

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

一個 Flutter 套件,讓開發者能夠為行動與桌面應用程式實作可自訂的 PIN 輸入畫面,並搭配客製化鍵盤。它支援對 PIN、OTP 及密碼的安全輸入處理,提供彈性的設計與行為。此套件可無縫整合至 Android、iOS、Web、macOS、Windows 與 Linux,非常適合需要數字或自訂輸入的驗證流程。它提供簡潔的 API,用於樣式設定、驗證與回呼處理。

適用情境

  • 使用PIN碼進行用戶身份驗證
  • 一次性密碼 (OTP) 輸入
  • 安全密碼輸入欄位
  • 表單的自定義鍵盤佈局
  • 多平台應用一致性

主要特色

  • 可自定義的鍵盤佈局
  • 跨平台支援
  • 安全輸入處理
  • 可設定的引腳長度
  • 變更時和完成時回調
  • 與現有使用者介面輕鬆整合

適合對象

  • 開發人員建構驗證流程
  • 需要安全數字輸入的應用程式
  • 針對多個平台的專案
  • 希望使用可重複使用的釘子組件的團隊
  • 以使用者體驗為導向的表單實作

使用建議

  • 需要手動處理安全最佳實踐
  • 內建驗證功能有限,僅限長度
  • 可能需要額外的樣式來實現複雜的設計
  • 未針對非數值輸入進行優化
  • 依賴於平台特定的渲染行為

原始 README

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

🔐 custom pin screen

codecov CI license PRs Welcome GitHub contributors GitHub last commit

A flutter package to add screens with custom keyboards and pins to your mobile application.

🎖 Installing

dependencies:
  custom_pin_screen: "^1.0.0"
⚡️ Import
import 'package:custom_pin_screen/custom_pin_screen.dart';

🎮 How To Use

Dart Usage
  • Pin Auth
onPressed: (){
    Navigator.push(
                  context,
                  MaterialPageRoute(
                    builder: (context) => PinAuthentication(
                      onChanged: (v) {
                        if (kDebugMode) {
                          print(v);
                        }
                      },
                      onSpecialKeyTap: () {},
                      specialKey: const SizedBox(),
                      useFingerprint: true,
                      onbuttonClick: () {},
                      submitLabel: const Text(
                        'Submit',
                        style: TextStyle(color: Colors.white, fontSize: 20),
                      ),
                    ),
                  ),
                );
    },
  • Custom Keyboard
Column(
        children: [
          const Padding(
            padding: EdgeInsets.symmetric(
              horizontal: 35.0,
              vertical: 35.0,
            ),
            child: Text(
              "How much do you want to fund your wallet with",
              textAlign: TextAlign.center,
              style: TextStyle(
                color: Colors.blue,
                fontWeight: FontWeight.w700,
                fontSize: 18,
              ),
            ),
          ),
          Expanded(
              child: CustomAppKeyBoard(
            onChanged: (v) {
              if (kDebugMode) {
                print(v);
              }
            },
            onbuttonClick: () {
              if (kDebugMode) {
                print('clicked');
              }
            },
            maxLength: 4,
            submitLabel: const Text(
              'Proceed',
              style: TextStyle(
                color: Colors.white,
                fontWeight: FontWeight.w700,
                fontSize: 18,
              ),
            ),
            // ),
          ))
        ],
      )

For more info, please, refer to the main.dart in the example.

📸 ScreenShots

🐛 Bugs/Requests

If you encounter any problems feel free to open an issue. If you feel the library is missing a feature, please raise a ticket on Github and I'll look into it. Pull request are also welcome.

❗️ Note

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

🤓 Developer(s)

Abada Samuel Oghenero

⭐️ License

MIT LICENSE

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。