You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see that you are using onDetect. You can manually listen to the barcodes stream of the controller and pause the StreamSubscription that you get from that.
Although, maybe we should also pause the underlying stream source when pause() is called for the camera preview.
I am trying to pause the scanning of barcodes once it detects a barcode
But it doesn't stop scanning and keep reading barcode
controller.pause()
should stop scanning I make the code await and use .then as well but nothing seems to workThe text was updated successfully, but these errors were encountered: