disable_screenshots 0.2.0 disable_screenshots: ^0.2.0 copied to clipboard
Provides three related functions that disable screenshots. These are: screenshot monitoring, adding a watermark globally, disabling screenshots (only supports Android). 提供三个禁用截屏的相关功能。分别是:截屏监控、全局添加水印、禁 [...]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add disable_screenshots
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
disable_screenshots: ^0.2.0
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:disable_screenshots/disable_screenshots.dart';