프로젝트
GitHub에서 보기
adar2378/pin_code_fields
소개
세련된 디자인과 애니메이션을 갖춘 PIN 코드 입력 필드를 만들 수 있는 Flutter 패키지입니다. OTP나 PIN 코드 입력에 사용할 수 있습니다 🤓🤓
웹 및 앱 개발What you can do
- 🎨 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
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original
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.
관련 프로젝트 살펴보기
불러오는 중…