Hi,
Made several improvement on the reader_widget.dart :
1- Fix WidgetsBindingObserver not working on app after injecting reader_widget du to SystemChannels.lifecycle.setMessageHandler
2- Avoid memory leak by removing removeListener
3- Replace method _flashIcon by widget _FlashIcon
4- pass a widget argument for the loader to give more customisation
5- pass a duration argument to customise duration after successful scan
6- don't instantiate new camera if the old one not disposed
Hope you like it. Don't hesitate contact me if needed.
Regards,