disable_screenshots icon indicating copy to clipboard operation
disable_screenshots copied to clipboard

Flutter 3 "Activity? but Activity was expected" bug

Open gizemgizg opened this issue 3 years ago • 2 comments

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? Ekran Resmi 2022-07-03 01 12 18

gizemgizg avatar Jul 02 '22 22:07 gizemgizg

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

Hope it works👌

image

awnigharbia avatar Sep 15 '22 06:09 awnigharbia

I trying. Thank you very much for your reply ✨🙌🏻

gizemgizg avatar Sep 15 '22 13:09 gizemgizg

!! I added it but 3 more problems occurred. Can you help me? @awnigharbia Ekran Resmi 2022-09-20 11 33 42

gizemgizg avatar Sep 20 '22 08:09 gizemgizg

Thank you for helping. Problem solved 💙 @awnigharbia

gizemgizg avatar Sep 22 '22 06:09 gizemgizg