flutter_prevent_screenshot 0.0.1+7
flutter_prevent_screenshot: ^0.0.1+7 copied to clipboard
A new Disable screenshot package project.
know whether this package might be useful for them. The flutter_prevent_screenshot package allows Flutter developers to prevent users from taking screenshots or screen recordings of their app's content on both Android and iOS platforms. This feature is essential for enhancing the security and privacy of sensitive information displayed within the app.
Features #
Block Screenshots: Prevent users from capturing screenshots of your app's content. Block Screen Recording: Disable screen recording to protect sensitive information.
Platform Support #
Compatible with both Android and iOS.
Getting started #
Add the following dependency to your pubspec.yaml file:
flutter_prevent_screenshot: ^0.0.1+4
import 'package:flutter_prevent_screenshot/flutter_prevent_screenshot.dart';
Usage #
final _noScreenshot = NoScreenshot.instance;
turnoffScreenshot() async {
final result = await _noScreenshot.screenshotOff();
if (kDebugMode) {
print(result);
}
}
@override
void initState() {
turnoffScreenshot();
super.initState();
}
@override
void dispose() {
_noScreenshot.screenshotOn();
super.dispose();
}
@override
Widget build(BuildContext context) {
return Container(
color: Colors.transparent,
);
}
Additional information #
contribute to the package, how to file issues, what response they can expect from the package authors, and more.
Contributing #
Contributions are welcome! Please submit a pull request or open an issue to discuss your ideas.