1 - I wonder if the await is necessary there, at least it should be after the availableCameras().
Future<void> initStateAsync() async {
// Spawn a new isolate
await startCameraProcessing();
availableCameras().then((List<CameraDescription> cameras) {
setState(() {
this.cameras = cameras;
if (cameras.isNotEmpty) {
onNewCameraSelected(cameras.first);
}
});
});
}
2 - rebuildOnMount, probably clean to go with a widgetsbinding.instance.addpostframecallback
3 - Maybe on evolution could be to screenShoot the QRCode and display it. It should be doable with the takePicture method.
4 - Would you like me to add a scanning animation to the ReaderWidget, activated by a boolean, or better as an optional overlay so people could implement their own if they prefer ?
Hi,
Thanks you for the package, really like it.
I do have some questions and remarks.
1 - I wonder if the await is necessary there, at least it should be after the availableCameras().
2 - rebuildOnMount, probably clean to go with a widgetsbinding.instance.addpostframecallback 3 - Maybe on evolution could be to screenShoot the QRCode and display it. It should be doable with the takePicture method. 4 - Would you like me to add a scanning animation to the ReaderWidget, activated by a boolean, or better as an optional overlay so people could implement their own if they prefer ?
Regards