privacy_lens 1.0.1 copy "privacy_lens: ^1.0.1" to clipboard
privacy_lens: ^1.0.1 copied to clipboard

A lightweight Flutter widget to mask sensitive data from screen captures and recordings.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:privacy_lens/privacy_lens.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text("Privacy Lens Example")),
        body: Center(
          child: PrivacyLens(
            isProtected: true, // Always blur for demonstration OR false = only blur when app is backgrounded
            blurStrength: 10.0, // Adjust blur strength as needed
            child: const Text(
              "Sensitive Data: 1234-5678-9012",
              style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
            ),
          ),
        ),
      ),
    );
  }
}
0
likes
0
points
35
downloads

Publisher

unverified uploader

Weekly Downloads

A lightweight Flutter widget to mask sensitive data from screen captures and recordings.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on privacy_lens

Packages that implement privacy_lens