Skip to content
pubscout

flutter_sensitive_content

0.0.3, released a year ago by carlodotlog.dev

Hides sensitive content when switching away from the app.

WASM-ready
$ flutter pub add flutter_sensitive_content
Source repository

What it does

A Flutter package providing a widget that listens to AppLifecycle states to swap sensitive content with public content when the app goes into the background or previews. It protects information from being exposed in app switchers.

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

Use it when

  • You need to hide sensitive financial or personal data in the device task switcher
  • You want a simple widget-level approach to handle app background previews

Skip it when

  • You need native OS-level secure window flags rather than a Flutter widget swap

Strengths

  • Simple widget wrapper API
  • Supports multiple platforms including Android, iOS, web, and macOS

Weaknesses

  • Relies on widget-level app lifecycle state changes rather than native window flags

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Not documented

Scaffold(
  body: SensitiveContent(
    publicContent: Center(
      child: Text("Public Data"),
    ),
    child: Center(
      child: Text("Sensitive Data"),
    ),
  ),
);

Alternatives

Packages that do the same job and could replace flutter_sensitive_content.