disable_screenshots
disable_screenshots copied to clipboard
Flutter 3 "Activity? but Activity was expected" bug
Hello, first of all, thank you very much for the package you developed. When importing Build I get an error that it should be "Activity? but Activity was expected". Can you help me?

Go to DisableScreenshotPlugin.kt and edit line 52 by adding !! at the end of registerar.activity() like this:
Hope it works👌

I trying. Thank you very much for your reply ✨🙌🏻
!! I added it but 3 more problems occurred. Can you help me? @awnigharbia

Thank you for helping. Problem solved 💙 @awnigharbia