flutter_sensitive_content 0.0.1 copy "flutter_sensitive_content: ^0.0.1" to clipboard
flutter_sensitive_content: ^0.0.1 copied to clipboard

Flutter widget to hide sensitive data

A Flutter package to hide the sensitive content of your app when you switch to another app. So no sensitive information are showed when the app previewer is showed.

Features #

Protect you sensitive content with [SensitiveContent] widget. It listen for AppLifecycle states, when the app goes in background switch from [child] content to [publicContent] content.

Getting started #

Add this package to your yaml file

flutter_sensitive_content: 0.0.1

or exec this command:

flutter pub add flutter_sensitive_content

Usage #

Import the package in your dart file:

import 'package:flutter_sensitive_content/flutter_sensitive_content.dart';

Then, wrap your sensitive data with [SensitiveContent] widget

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

Additional information #

11
likes
130
pub points
62%
popularity

Publisher

unverified uploader

Flutter widget to hide sensitive data

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_sensitive_content