Skip to content
pubscout

secure_application

4.1.0, released 2 years ago by jezequel.org

Hides app content in the app switcher and displays a frost barrier when returning to the app.

$ flutter pub add secure_application
Source repository

What it does

Protects application content visibility when the user leaves the app or switches apps. It hides content in the task switcher and displays a customizable blur or frost barrier above locked content until unlocked.

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

Use it when

  • You are building apps with sensitive data (like banking or personal records) that need to be hidden in the app switcher.
  • You want to trigger biometric or custom authentication flows when the user returns to the app.

Skip it when

  • You only need local storage encryption without UI visibility handling.
  • You do not target mobile platforms or web/windows where app visibility states apply.

Strengths

  • Supports multiple platforms including Android, iOS, web, and Windows.
  • Provides streams for authentication and lock events to easily hook into app lifecycle security.

Weaknesses

  • Requires manual implementation of authentication UI and logic (does not bundle biometrics out of the box).
  • Platform-specific behaviors like FLAG_SECURE on Android automatically block screenshots.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
2

No special permissions documented beyond standard plugin integration.

SecureApplication(
  onNeedUnlock: (secure) => secure.unlock(),
  child: SecureGate(
    blurr: 5,
    lockedBuilder: (context, secureNotifier) => Center(
      child: RaisedButton(
        child: Text('Unlock'),
        onPressed: () => secureNotifier.unlock(),
      ),
    ),
    child: YouProtectedWidget(),
  ),
)

Alternatives

Packages that do the same job and could replace secure_application.

Works with

Packages commonly used together with secure_application: ones it builds on, ones built on it, and its own family.