Closed sghaleb1 closed 3 years ago
Hello,
The code snippet in docs has been corrected, thanks! Actually, there are no callbacks in the showScanner
function.
Hello,
The code snippet in docs has been corrected, thanks! Actually, there are no callbacks in the
showScanner
function.
Alright, thank you for the clarification. Are there any plans to include callback in the future? Or if there is a method to achieve a callback.
No, we are not going to add callbacks as we don't have a sense of it and there is EventChannel
. To handle events, you need to use the EventChannel
where you can handle the DocumentReaderCompletion
actions.
Thank you for the support. I'll look up EventChannel
to fix my problem.
The
DocumentReader.showScanner().then()
doesn't seem to be working, it expects aFuture
but does not execute when the scanner is complete or cancelled.Packages and versions used:
I am using the example demo given, but I removed the RFID and using OCR only. I cleaned the code to use minimal functions.
The scanner works and gives results after scanning documents, using a controller. But it does not give results in that specific Widget. For example, I click scanner button, I scan document, then setState those results to specific state given. But showScanner() always does the same function, since I cannot pass it parameters.
Nothing prints when I do this, even the
catchError
doesn't print.NOTE: The documents even suggest you use
.then()
method. https://docs.regulaforensics.com/flutter/show-scannerHope you are able to help.
Thank you