passcode_screen
2.0.1, released 5 years ago by redeyes.dev
Platform-agnostic passcode lock screen widget
WASM-ready
What it does
Provides a customizable passcode input screen that mimics native iOS behavior. It supports callbacks for passcode entry, validation, cancellation, and can be styled via colors, sizes, and custom widgets.
AI-written summary of version 2.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a simple passcode lock screen for authentication or secure sections of an app
- You want a ready-made, null-safe widget that works on mobile, web, and desktop
- You need customizable UI elements like cancel/delete buttons and keyboard layout
Skip it when
- You require biometric authentication or multi-factor login flows
- You need a full authentication framework with backend integration
- You want a lightweight solution that only needs a simple dialog
Strengths
- Highly customizable UI via color, size, and widget parameters
- Platform agnostic with no native configuration required
- Supports web and desktop keyboard listeners
- Null safety and up-to-date with Flutter 2+
Weaknesses
- Limited to passcode input only, no biometric or OAuth support
- No built-in navigation handling beyond callbacks
- Requires manual stream handling for validation
- No integration with backend services
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:passcode_screen/passcode_screen.dart';
PasscodeScreen(
title: Text('Enter Passcode'),
passwordEnteredCallback: (code) => print('Code: $code'),
cancelButton: Text('Cancel'),
deleteButton: Text('Delete'),
shouldTriggerVerification: StreamController<bool>.broadcast().stream,
);Alternatives
Packages that do the same job and could replace passcode_screen.
- wheel_picker
A customizable wheel scroll picker widget for selecting values or time.
80Compare - simple_shadow
Customizable drop shadow widget for any child
45Compare - flash
Customizable alert and toast widget for Flutter
50Compare - progress_state_button
A customizable progress button widget with multiple states for Flutter.
50Compare