flutter_prevent_screenshot 0.0.1+15 copy "flutter_prevent_screenshot: ^0.0.1+15" to clipboard
flutter_prevent_screenshot: ^0.0.1+15 copied to clipboard

flutter_prevent_screenshot prevents screenshots and screen recordings in Flutter apps on Android and iOS, ideal for protecting sensitive or confidential information.

🚀 Introducing flutter_prevent_screenshot: Enhance Your Flutter App's Security! 📱

I'm thrilled to announce the release of our new Flutter package, flutter_prevent_screenshot! This package is designed to help developers protect sensitive information in their Flutter applications by preventing screenshots and screen recordings on both Android and iOS platforms.

Features #

Block Screenshots: Prevent users from capturing screenshots of your app's content. Block Screen Recording: Disable screen recording to protect sensitive information.

Platform Support #

Compatible with both Android and iOS.

Getting started #

Add the following dependency to your pubspec.yaml file:

flutter_prevent_screenshot: ^0.0.1+12
import 'package:flutter_prevent_screenshot/flutter_prevent_screenshot.dart';

Usage #

final _flutterPreventScreenshot = FlutterPreventScreenshot.instance;
turnoffScreenshot() async {
  final result = await _flutterPreventScreenshot.screenshotOff();
  if (kDebugMode) {
    print(result);
  }
}

@override
void initState() {
  turnoffScreenshot();
  super.initState();
}

@override
void dispose() {
  _flutterPreventScreenshot.screenshotOn();

  super.dispose();
}

@override
Widget build(BuildContext context) {
  return Container(
    color: Colors.transparent,
  );
}

Additional information #

contribute to the package, how to file issues, what response they can expect from the package authors, and more.

Contributing #

Contributions are welcome! Please submit a pull request or open an issue to discuss your ideas.

6
likes
130
pub points
76%
popularity

Publisher

verified publisherapp-master.online

flutter_prevent_screenshot prevents screenshots and screen recordings in Flutter apps on Android and iOS, ideal for protecting sensitive or confidential information.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_prevent_screenshot