mintware-de / flutter_barcode_reader

A flutter plugin for reading 2D barcodes and QR codes.
MIT License
628 stars 464 forks source link

Removed Activity dependency on registration #21

Closed s-bauer closed 5 years ago

s-bauer commented 6 years ago

There are special cases where the Registrar does not have an attached activity (e.g. launched the app in the background). Currently if this happens the plugin throws an exception in the registerWith method. I refactored the code to allow an empty activity and only require it when the scan function is called.