Skip to content
pubscout

screenshot_guard

0.0.5, released 2 years ago by an unverified publisher

Prevents screenshots and screen recordings on Android, iOS, and Windows.

WASM-ready
$ flutter pub add screenshot_guard
Source repository

What it does

This plugin sets platform‑specific flags to block screenshot and screen recording. It also provides a callback to detect when a recording starts on iOS.

AI-written summary of version 0.0.5, based on the package's README and metadata. Report an inaccuracy

Use it when

  • Protecting sensitive screens in banking or health apps
  • Preventing screen capture in secure admin panels
  • Disabling screenshots during video calls

Skip it when

  • Apps that need to allow users to capture the screen for sharing
  • Applications that rely on screen recording for tutorials

Strengths

  • Cross‑platform support (Android, iOS, Windows)
  • Simple API with a single enable/disable method
  • No heavy dependencies

Weaknesses

  • Does not support macOS or Linux
  • May not work on older Windows versions lacking SetWindowDisplayAffinity
  • Limited to screenshot/recording protection only

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
1

Add the package to pubspec, run flutter pub get. On Android add the FLAG_SECURE permission in AndroidManifest.xml if needed. No build_runner or native code changes required.

import 'package:screenshot_guard/screenshot_guard.dart';

final guard = ScreenshotGuard();

void toggle() async {
  await guard.enableSecureFlag(true); // or false
}

Alternatives

Packages that do the same job and could replace screenshot_guard.

Works with

Packages commonly used together with screenshot_guard: ones it builds on, ones built on it, and its own family.