유연한 구성 옵션을 갖춘 사용자 정의 가능한 Flutter 위젯으로 로컬 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: constIcon(
Icons.fingerprint,
size: 40,
),
onPressed: () {},
),
),
Full example is here https://github.com/AgoraDesk-LocalMonero/flutter-pin-code-widget/blob/main/example/lib/main.dart
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
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
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.