Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"FlutterWindowManager.FLAG_SECURE' not working for screen shots #21

Open
ghost opened this issue Sep 30, 2021 · 0 comments
Open

"FlutterWindowManager.FLAG_SECURE' not working for screen shots #21

ghost opened this issue Sep 30, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Sep 30, 2021

I'm using flutter_windowmanager 0.2.0 but nothing will happen, just it helps me to hide the screen.
How to prevent to take screen shots and also not hide the app logo ?

My code :

   void secureScreen() async {
    await FlutterWindowManager.addFlags(FlutterWindowManager.FLAG_SECURE);
    await FlutterWindowManager.addFlags(
        FlutterWindowManager.FLAG_KEEP_SCREEN_ON);
    await FlutterWindowManager.addFlags(FlutterWindowManager.FLAG_FULLSCREEN);
  }

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

this is my code in main.dart

My Screenshot - https://drive.google.com/file/d/1zudi1VeJXJKIEjB3cNDhH2TB7ddxeUnx/view?usp=sharing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants