Skip to content
pubscout

screen_protector

1.5.3, released 4 months ago by inteniquetic.com

Prevents screenshots and background data leakage on Android and iOS.

WASM-ready
$ flutter pub add screen_protector
Source repository

What it does

Allows Flutter apps to protect sensitive user data by blocking screenshots and screen recordings, or by masking the app preview with colors, images, or blur when sent to the background.

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

Use it when

  • Building banking, fintech, or health applications that handle sensitive user data
  • Preventing app preview snapshots from appearing in the iOS app switcher

Skip it when

  • Your application does not handle sensitive or private user information
  • You only target desktop or web platforms

Strengths

  • Supports both Android and iOS platforms
  • Provides flexibility on iOS to blur, color, or show an image when backgrounded

Weaknesses

  • Platform-specific behaviors and APIs may require manual native lifecycle wiring on certain OS versions

Setup

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

Requires platform-specific initialization code for Android and iOS as described in the README.

import 'package:screen_protector/screen_protector.dart';

void _preventScreenshotOn() async {
  await ScreenProtector.preventScreenshotOn();
}

Alternatives

Packages that do the same job and could replace screen_protector.

Works with

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