flutter_screenshot_detect 0.1.6 flutter_screenshot_detect: ^0.1.6 copied to clipboard
A Flutter plugin to detect screenshots on Android and iOS devices. It provides real-time detection using content observers for older Android versions and screen capture callbacks for Android 14+. Supp [...]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add flutter_screenshot_detect
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
flutter_screenshot_detect: ^0.1.6
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:flutter_screenshot_detect/flutter_screenshot_detect.dart';