Skip to content

Introducing flutter_prevent_screenshot: Enhance Your Flutter App's Security!

License

Notifications You must be signed in to change notification settings

niravkakadiya25/flutter_prevent_screenshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 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.