Open alexyuyl opened 4 months ago
Yes, it is now mandatory to have a MaterialApp. The module is not started in the example, sorry for that. You can modify in the example by:
Widget _buildLiveScan() {
return LiveScanWidget(
ocrTextResult: (ocrTextResult) {
ocrTextResult.mapResult.forEach((module, result) {});
},
scanModules: [ScanAllModule()..start()],
);
}
I will make a correction to the example, thank you !
I tried
Firstly I am greeted by error about the app is not wrapped inside MaterialApp. I fixed this by wrapping the MyApp inside MaterialApp().
However after the build compiled, none of the three approached worked. It appears the code is only showing a camera preview and the ocr is not working. Tested on both Android and iOS.
Please inform if the example code is the minimum functional code, or I have to add some missing parts myself.