prongbang/screen_protector ? reverse-engineered prompt
Reverse engineered prompt
Build me a Flutter plugin that helps protect sensitive screens on iPhone and Android. I want it to stop screenshots where possible, hide or replace the app preview when the app goes into the background, and let me turn that protection on and off from Dart.
Please include simple methods I can call for things like turning screenshot protection on and off, using a blank color, a blur, or a custom image for the background snapshot on iOS, and checking whether the device is currently recording the screen. On Android, make sure it works for preventing screenshots and protecting the app switcher preview, and include any setup needed for newer Android versions.
Please also add a small example app showing how to use it in a page lifecycle, plus basic tests and clear README instructions so it is easy to drop into a real app. If you need to look up current platform behavior online, feel free to do that.
Are you gonna build this?
make sure you review the code using coderabbit