Open arnabonetraker opened 2 months ago
You should call super.dispose
before controller.dispose();
according to the README.md
You should call
super.dispose
beforecontroller.dispose();
according to theREADME.md
That does not appear to be the root cause of the problem. But I will modify and observe.
As per as flutters documentation for dispose() method
Implementations of this method should end with a call to the inherited method, as in super. dispose().
Does this device require the NV21 image format?
Does this device require the NV21 image format?
I am not sure. This was from Oneplus Nord 2. But I have seen similar behaviour from my iPhone 10 as well.
For your Oneplus Nord 2, does it support the YUV 420 format? If not, then NV21 would be required for that device.
For the iPhone, I'm not sure why it happens.
For your Oneplus Nord 2, does it support the YUV 420 format? If not, then NV21 would be required for that device.
For the iPhone, I'm not sure why it happens.
It supports YUV420.
I've noticed that the MobileScanner widget occasionally stops displaying the camera preview until I restart my app. No error log was thrown so I am out of the loop. I am using the example method to start the camera using the
WidgetsBindingObserver
. It looks like this could be related to these issues -605
589
976
Even after the camera preview was turned off, it continued to scan for me. If you watch the video, you will notice toast notifications appear, indicating that it detected a barcode but did not show a camera preview.
https://github.com/juliansteenbakker/mobile_scanner/assets/111729204/f165f21a-78f1-4ccb-a615-82d3c3f64d6f
mobile_scanner: ^5.1.1
Flutter doctor:
Intitalization code: