eliasteeny / flutter_document_scanner

Document scanner plugin ported from react native to flutter
MIT License
38 stars 26 forks source link

ios Camera is kept open when scanning is cancelled. #9

Open rdonasco opened 3 years ago

rdonasco commented 3 years ago

I've added a container which allows me to select image either from gallery or the DocumentScanner. It all works fine, however, when I replace the content of container to the image from gallery, the iOS Camera is kept running (green indicator on upper right is on). Is there a way to close the camera or cancel the document scanning?

To cancel, I simply pop the page back to the previous.

Thanks.

eliasteeny commented 3 years ago

As I remember that this bug shouldn't occur. I can't test it because I don't have any access to a mac. Can you check if the widget that contains the document scanner is getting disposed ?