and here is the code for reading
void _regulaEventChannel() {
setState(() {});
EventChannel('flutter_document_reader_api/event/completion')
.receiveBroadcastStream()
.listen((jsonString) => this.handleCompletion(
doc.DocumentReaderCompletion.fromJson(json.decode(jsonString))));
}
im calling below line after _regulaEventChannel
doc.DocumentReader.showScanner();
i Also edited the strPresentNextPage in android res/values & res/values-ar to
Scan the other side of the document
<string name="strPresentNextPage">امسح الوثيقة من الجهة الأخرى </string>
yaml :
here is my code below
regula_config :
void setRegulaConfig(BuildContext context) { doc.DocumentReader.setConfig({ "processParams": { "scenario": doc.ScenarioIdentifier.SCENARIO_FULL_PROCESS, "returnUncroppedImage": true, "multipageProcessing": true, "dateFormat": "dd/MM/yyyy", }, "functionality": {"showSkipNextPageButton": true}, "customization": { "resultStatusPositionMultiplier": 0.5, } }); }
and here is the code for reading void _regulaEventChannel() { setState(() {}); EventChannel('flutter_document_reader_api/event/completion') .receiveBroadcastStream() .listen((jsonString) => this.handleCompletion( doc.DocumentReaderCompletion.fromJson(json.decode(jsonString)))); } im calling below line after _regulaEventChannel doc.DocumentReader.showScanner();
i Also edited the strPresentNextPage in android res/values & res/values-ar to
flutter_document_reader_api: ^6.1.0 flutter_document_reader_core_fullrfid: ^6.1.0