패키지, 저장소 및 앱 카테고리 검색

passcode_screen 표지
패키지 상세v2.0.1

passcode_screen

네이티브 iOS와 유사한 패스코드 입력 화면을 표시하는 플랫폼 독립적인 Flutter 패키지입니다. 색상, 크기, 폰트 등을 사용하여 화면을 사용자 정의할 수 있습니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
4.6천
좋아요
117
Pub 점수
135

패키지 설치

flutter pub add passcode_screen

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

플랫폼에 관계없이 사용 가능한 Flutter 패키지로, 네이티브 iOS 패스코드 인터페이스를 모방한 사용자 정의 가능한 비밀번호 입력 화면을 제공합니다. 색상, 크기, 폰트 등 다양한 사용자 정의 옵션을 지원하여 여러 플랫폼에서 안전한 PIN 또는 OTP 입력에 적합합니다. 이 패키지는 가볍고 Flutter 앱에 원활하게 통합되며, 안드로이드, iOS, 웹, macOS, Windows, 리눅스에서 일관된 사용자 경험을 제공합니다.

사용 사례

  • PIN으로 보안 로그인
  • 이중 인증
  • OTP 인증
  • 생체 인식 백업
  • 앱 잠금 화면
  • 결제 확인

주요 기능

  • 네이티브 iOS 디자인
  • 완전히 사용자 정의 가능한 외관
  • 크로스 플랫폼 호환성
  • 간단한 통합
  • 모든 주요 플랫폼을 지원합니다
  • 사용자 정의 가능한 입력 동작

적합한 대상

  • 보안 PIN 입력이 필요한 앱
  • 인증 흐름
  • 모바일 앱 개발자
  • 사용자 경험 중심 애플리케이션
  • 다중 플랫폼 프로젝트
  • 보안을 고려한 기능

고려 사항

  • 비밀번호 검증을 수동으로 처리해야 합니다
  • 제한된 내장 보안 조치
  • 사용자 정의 스타일은 접근성에 영향을 줄 수 있습니다
  • 복잡한 양식 워크플로우에 최적화되지 않음
  • 내장된 생체 인식 통합 없음
  • 상태 관리에 외부 로직에 의존합니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Pub

Flutter - Passcode Lock Screen

A Flutter package for iOS and Android for showing passcode input screen, similar to Native iOS.

passcode-screen-demo.gif

Installation

First add passcode_screen as a dependency in your pubspec.yaml file.

Then use import

import 'package:passcode_screen/passcode_screen.dart';

What can it do for you?

passcode-screen-default.png
  1. Create a beautiful passcode lock view simply.
PasscodeScreen(
  title: title,
  passwordEnteredCallback: _onPasscodeEntered,
  cancelButton: Text('Cancel'),
  deleteButton: Text('Delete'),
  shouldTriggerVerification: _verificationNotifier.stream,  
);
  1. Passcode input completed callback.
_onPasscodeEntered(String enteredPasscode) {
  
}
  1. Notify passcode screen if passcode correct or not
final StreamController<bool> _verificationNotifier = StreamController<bool>.broadcast();

_onPasscodeEntered(String enteredPasscode) {
  bool isValid = '123456' == enteredPassword;
  _verificationNotifier.add(isValid);
}

Don't forget to close a stream

@override
void dispose() {
  _verificationNotifier.close();
  super.dispose();
}

  1. Customize UI.

Customize circles

class CircleUIConfig {
  final Color borderColor;
  final Color fillColor;
  final double borderWidth;
  final double circleSize;
  double extraSize;
}

Customize keyboard

class KeyboardUIConfig {
  final double digitSize;
  final TextStyle digitTextStyle;
  final TextStyle deleteButtonTextStyle;
  final Color primaryColor;
  final Color digitFillColor;
  final EdgeInsetsGeometry keyboardRowMargin;
  final EdgeInsetsGeometry deleteButtonMargin;
}
passcode-screen-custom.png

Landscape Support

passcode-screen-default-lanscape.png
iOS & Android

Plugin is totally platform agnostic. No configuration required - the plugin should work out of the box.

Contributions

Warmly welcome to submit a pull request!

Passcode Lock Screen

Passcode Lock Screen is owned and maintained by Redeyes Dev

Used in production

Passkeep - Passwords Keeper

Contributors

Vladimir Hudnitsky BeDaut mix1009 pixnbit ssanderson imejiasoft

Relase notes:

1.0.0+1:

Basic implementation of a widget.

  • You could show a widget, enter passcode and validate it.
1.0.1
  • Added isValidCallback to help you handle success scenario. isValidCallback will be invoked after passcode screen will pop.
1.0.2
  • Added configurable background and title color. (by @BeDaut)
  • Added cancelCallback to react when user cancelled widget (by @mix1009)
1.1.0
  • Provide widget instead of string for title
  • Fixed digits layout
  • Added flexibility to configure 'Cancel' and 'Delete' buttons as widgets
  • Added flexibility to provide digits as list of strings for better customisation
  • Removed navigation as default action when cancel pressed

1.1.1

  • Add landscape view for the passcode screen

1.2.0

  • Add dynamic size for landscape view.
  • Moved 'Cancel' button to the bottom of the screen to align with iOS Native Passcode Screen style.

1.2.1

  • Example updated to target Android 11
  • Fixed Issue#23

1.2.2

  • Fixed an issue with example build
  • Example updated to show how to implement 'Reset passcode' feature

2.0.0

  • Null safety

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트