カテゴリー・パッケージ・リポジトリを検索

pin_code_fields のカバー
パッケージ詳細v10.1.1

pin_code_fields

Material Design をサポートし、カスタム UI 用のヘッドレスコアを備えた、Flutter 向けに高度にカスタマイズ可能な PIN/OTP 入力フィールド。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
41.5万
いいね数
2390
Pub ポイント
160

パッケージをインストール

flutter pub add pin_code_fields

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Flutter用に高度にカスタマイズ可能なPINおよびOTP入力フィールドで、Material Designの原則に基づいて設計されています。ビジュアルモードとヘッドレスモードの両方をサポートしており、開発者が直感的な認証インターフェースや完全にカスタムUIを構築できるようにしています。滑らかなアニメーション、リアルタイム検証、すべてのプラットフォームでの応答性のあるデザインを提供します。ログイン画面、認証フロー、セキュアな入力フォームに最適です。

用途

  • OTPによるユーザー認証
  • 二要素認証
  • セキュアPIN入力
  • モバイルアプリにおけるフォーム検証
  • カスタマイズ可能な検証画面
  • クロスプラットフォーム入力フィールド

主な機能

  • Material Design準拠
  • カスタムUI向けヘッドレスモード
  • リアルタイム入力検証
  • スムーズなアニメーションと遷移
  • レスポンシブレイアウトのサポート
  • カスタマイズ可能なスタイルと動作

適している対象

  • セキュアな入力フォームを構築する開発者
  • クロスプラットフォーム互換性が必要なチーム
  • OTPまたはPIN認証を必要とするアプリ
  • 柔軟なUIコンポーネントを望むデザイナー
  • 統合の必要性が高いプロジェクト

注意事項

  • ヘッドレスモードでは、フォーカスとナビゲーションを手動で処理する必要があります
  • 複雑な検証ルールには追加の論理が必要になる場合があります
  • スタイリングのカスタマイズにはFlutterのウィジェットツリーの理解が必要です
  • 非常に長い入力シーケンスには最適化されていません
  • 基本的なフィードバックを超える組み込みエラーメッセージは限られている

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Pin Code Fields

A highly customizable Flutter package for PIN code and OTP input fields with beautiful design and animations.

Version 9.0 introduces a new headless architecture - use the ready-made Material Design implementation or build completely custom UIs!

Package Location

The publishable package is located at:

packages/pin_code_fields/

📦 View Package README for full documentation.

Quick Start

dependencies:
  pin_code_fields: ^9.0.0
import 'package:pin_code_fields/pin_code_fields.dart';

// Material Design (ready to use)
MaterialPinField(
  length: 6,
  onCompleted: (pin) => print('PIN: $pin'),
)

// Custom UI (headless)
PinInput(
  length: 4,
  builder: (context, cells) => YourCustomUI(cells),
)

Repository Structure

pin_code_fields/
├── packages/
│   └── pin_code_fields/      # 📦 Main package
│       ├── lib/
│       │   └── src/
│       │       ├── core/     # Headless input engine
│       │       └── material/ # Material Design implementation
│       ├── example/
│       ├── test/
│       ├── README.md
│       ├── CHANGELOG.md
│       └── LICENSE
├── docs/
│   └── FEATURE_COMPARISON.md
├── melos.yaml
└── CLAUDE.md

Development

This project uses melos for monorepo management.

# Install melos
dart pub global activate melos

# Bootstrap workspace
melos bootstrap

# Run tests
melos test

# Run analyzer
melos analyze

Features

  • 🎨 Headless Architecture - Full control over UI rendering
  • 📱 Material Design Ready - Beautiful out-of-the-box implementation
  • 🎮 Unified Controller - Single controller for text, focus, and errors
  • ✨ Rich Animations - Scale, fade, slide entry animations
  • 🔐 Obscure Support - Character or custom widget obscuring
  • 📋 Paste Support - Long-press to paste from clipboard
  • 📝 Form Integration - Works with Flutter's Form widget
  • 📲 Autofill Support - SMS OTP autofill for iOS/Android
  • 💫 Error Animation - Shake animation with programmatic control

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License - see LICENSE for details.

カテゴリー

依存関係

依存関係一覧 2 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

ランキング