liranhao / recognition_qrcode

The Flutter recognition the qrcode in the image
BSD 2-Clause "Simplified" License
16 stars 7 forks source link

识别不含二维码的图片会报错,导致没有回调 #7

Closed wenchang1989 closed 2 years ago

wenchang1989 commented 2 years ago

[connection] nw_endpoint_handler_set_adaptive_read_handler [C10.1 157.119.174.252:80 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] unregister notification for read_timeout failed [connection] nw_endpoint_handler_set_adaptive_write_handler [C10.1 157.119.174.252:80 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] unregister notification for write_timeout failed

目前解决是使用try catch兼容

liranhao commented 2 years ago

ios还是安卓?没有二维码会抛出code为-1的错误,需要用trycatch捕获一下,是返回的FlutterError

liranhao commented 2 years ago

image