how to fix this? the "Scan Screen"

47 Views Asked by At

I'm trying to make a mobile app where the "Scan" button is pressed. it will have a camera access and I have another file for the scan screen. I keep getting this error. this is the only error I have. I can't run my code enter image description here

enter image description here

enter image description here

1

There are 1 best solutions below

0
Ashish On

Navigator.push(context,MaterialPageRoute(builder:(context)=>ScanScreen(camera:'CameraDescription'))) would fix it. ScanScreen widget is asking for required 'camera' parameter which you are currently not providing.