I found a solution using this package https://pub.dev/packages/screen_protector
which is working fine for ios and android, as it will show a blank view for screenshot. I think we can change it's code and display our custom widget/image.