Thank you in advance for looking into this problem I'm having issues just doing popping back to a page!
I have this code that works in one widget. It is scanning a QR code
@override
initState() {
_scan();
super.initState();
}
Future _scan() async {
barcode = await scanner.scan();
widget.test();
Navigator.pop(context);
}
How would I correctly do it with this other library? Within the callback call the widget.test() and Pop?
@override
void initState() {
super.initState();
_captureController.onCapture(
(data) {
print('onCapture----$data');
setState(() {
_captureText = data;
});
},
);