I am trying to use this package to simply scan a QR code and get the text content in Dart code. I do not want to display a view widget . I just need the text result and do something with it.
This line of code:
Result? result = await decoder.decodeCameraImage(CameraImage());
Is throwing Dart parse error : class CamareImage does not have unnamed constructor. I checked the camera.dart package and indeed the constructor to use is CameraImage.fromPlatformInterface(). But do i get the CameraImageData parameter that i need to pass to this named constructor?
I am trying to use this package to simply scan a QR code and get the text content in Dart code. I do not want to display a view widget . I just need the text result and do something with it.
This line of code: Result? result = await decoder.decodeCameraImage(CameraImage());
Is throwing Dart parse error : class CamareImage does not have unnamed constructor. I checked the camera.dart package and indeed the constructor to use is CameraImage.fromPlatformInterface(). But do i get the CameraImageData parameter that i need to pass to this named constructor?
Thanks for feedback. Kay