Android App Development
iOS App Development
Flutter App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Founder. Opencart
Top Partners
Updated 21 December 2023
Nowadays, user data security is a foremost priority. So, it is necessary to disable screenshots/ video recordings in the apps. You must have seen that a good number of apps like banking apps don’t allow you to take screenshots or record a video.
Now, let’s check how can we prevent screenshots/video recording in Flutter apps. In Flutter, we can use the flutter_windowmanager package to implement this functionality.
You may also check our Flutter app development services page.
Create a new flutter project and add this package to your project:
FlutterWindowManager.FLAG_SECURE: enables secure mode for the app, and disables screenshots, and screen recording.
You can clear and add flags according to your requirements. This package also provides several flags that help us implement functionalities.
When the secure flag is enabled, there is a notification to show inform regarding the disabled screenshot.
There is a drawback to this package that it doesn’t support iOS and as mentioned in the documentation there is no iOS support planned or possible.
In this article, I have explained how to prevent screenshots/video recording in the Flutter app.
Thanks for reading this article.
If I got something wrong, let me know in the comments. I would love to improve.
Reference link:
https://pub.dev/packages/flutter_windowmanager
Check out these interesting flutter topics:
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
Name
Email
Subject
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.