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

Show toast on screenshot on a secure app #10

Closed
shariful2011 opened this issue Sep 15, 2020 · 5 comments
Closed

Show toast on screenshot on a secure app #10

shariful2011 opened this issue Sep 15, 2020 · 5 comments

Comments

@shariful2011
Copy link

How can I show a toast when the user wants to take a screenshot of my app which is under your very good package? I used the example for testing purposes. Your early response will be highly appreciated.

@justkawal
Copy link

@shariful2011
You can easily show a snack-bar, when the user tries to take screenshot.

https://flutter.dev/docs/cookbook/design/snackbars

@shariful2011
Copy link
Author

but what is the callback when the user tries to take a screenshot? @justkawal.

@neckaros
Copy link
Owner

neckaros commented Mar 6, 2021

@shariful2011 sorry i missed your question. You are on Android?

@shariful2011
Copy link
Author

@neckaros yes. Also I found out that on some phones it shows a snackbar.

@neckaros
Copy link
Owner

neckaros commented Jun 3, 2021

this is not currently implemend by this package.
I found this article it might help: https://proandroiddev.com/detect-screenshots-in-android-7bc4343ddce1
I will add it to backlog but no garantee

@neckaros neckaros closed this as completed Jun 3, 2021
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

3 participants