screen_protector
1.5.3, released 4 months ago by inteniquetic.com
Prevents screenshots and background data leakage on Android and iOS.
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.
- no_screenshot
Disable screenshots and screen recording, detect events, and show overlays in the app switcher.
87Compare - open_wearables_health_sdk
Flutter SDK for background health data sync from Apple HealthKit and Samsung/Health Connect.
74Compare - flutter_background
Runs a Flutter app in the background on Android using a foreground service.
69Compare - privacy_screen
Hides sensitive data in the app switcher and provides automatic lock triggers with native lifeCycle listeners.
56Compare
Works with
Packages commonly used together with screen_protector: ones it builds on, ones built on it, and its own family.