flutter_sensitive_content
0.0.3, released a year ago by carlodotlog.dev
Hides sensitive content when switching away from the app.
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.
- rect_getter
A widget that provides a simple way to get a child widget's rectangle information after rendering.
50Compare - flutter_pagewise
Widgets for lazy-loading lists and grids with pagination support.
50Compare - selectable_container
A selectable container widget that shows an icon in one of its corners when tapped.
39Compare