'Camera not working in Android 12 using Scan plugin

In my flutter app, I am using the scan plugin for barcode scanning and facing the below issue.

I have given permission according to the plugin which they provided but the Camera is not open in android 12 devices and it shows me a white screen after giving permission.

Is there any solution or is there any permission which I missed to add?Image shows white screen instead of the camera



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source