ultron_screenshot_shield 2.0.0
ultron_screenshot_shield: ^2.0.0 copied to clipboard
A Flutter plugin to enable and disable screenshot for Android and iOS
ultron_screenshot_shield #
Flutter plugin to enable or disable screenshot support in your application.
Getting Started #
If you want to prevent user from taking screenshot of your app.
You can disable the screenshot support by simply calling
await UltronScreenshotShield.disableScreenshot();
You can enable again the screenshot support by simply calling
await UltronScreenshotShield.enableScreenshot();
for the relevant screen.
This can further be toggled for a specific screen by either using a RouteAware mixin, or through direct toggling in initState() and dispose() methods in the case of stateful widgets.