Skip to content
pubscout

flutter_app_lock

4.3.0, released a year ago by tomdev.co.uk

Shows a customizable lock screen on app open, pause, and inactive states.

WASM-ready
$ flutter pub add flutter_app_lock
Source repository

What it does

Shows a lock screen widget when the application launches or returns from the background/inactive state. It prevents access to the underlying app content until a successful unlock action is triggered. It also supports background lock latency and inactive state builders.

AI-written summary of version 4.3.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to secure your app with a passcode, PIN, or biometric lock screen on startup and resume.
  • You want to hide sensitive app contents when the user opens the device app switcher.

Skip it when

  • You need backend authentication services or OAuth flows rather than a UI app lock overlay.

Strengths

  • Integrates easily into MaterialApp, CupertinoApp, or WidgetsApp builders.
  • Supports background lock latency and custom inactive state builders.
  • Allows passing launch arguments from the unlock screen to the rest of the app.

Weaknesses

  • Requires manual implementation of the actual login/authentication logic inside your own lock screen widget.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

not documented

MaterialApp(
  builder: (context, child) => AppLock(
    builder: (context, arg) => child!,
    lockScreenBuilder: (context) => LockScreen(),
  ),
)

Alternatives

Packages that do the same job and could replace flutter_app_lock.