privacy_lens 1.0.1
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),
),
),
),
),
);
}
}