flutter_screen_lock
9.2.2+2, released a year ago by incrementleaf.net
Provides screen lock and passcode protection functionality with optional biometrics.
WASM-ready
What it does
Provides a screen lock widget and functions to require a passcode (PIN) or biometric authentication from the user. Supports passcode creation, confirmation workflows, landscape view, physical keyboard input, and full visual customization.
AI-written summary of version 9.2.2+2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to protect sensitive areas of your mobile or desktop app with a passcode.
- You want to combine passcode entry with biometric authentication.
Skip it when
- You are handling backend user sign-in and session management (which requires an authentication client).
- You only need local biometric prompting without a custom keypad UI.
Strengths
- Supports custom themes, custom widget builders, and localized keypad buttons.
- Handles physical keyboard input for desktop and tablet devices.
- Supports passcode creation and confirmation out of the box.
Weaknesses
- Requires integrating a separate package like local_auth for biometric functionality.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Add the package to pubspec.yaml. To use biometrics, integrate the local_auth package.
import 'package:flutter_screen_lock/flutter_screen_lock.dart';
screenLock(
context: context,
correctString: '1234',
);Alternatives
Packages that do the same job and could replace flutter_screen_lock.
- local_auth
If you only need standard OS-level biometric prompts rather than a full passcode screen lock interface.
90Compare