There was an issue on QRCodeDartScanView. When you go background and then return foreground, the flutter app lifecircle states are setting to:
to background -> inactive - hidden - paused
return foreground -> hidden - inactive - resumed
Because of that, app getting into inactive state twice before getting into resumed state. And that cause a crash.
So we need check controller is already disposed before dispose it.
There was an issue on QRCodeDartScanView. When you go background and then return foreground, the flutter app lifecircle states are setting to: to background -> inactive - hidden - paused return foreground -> hidden - inactive - resumed
Because of that, app getting into inactive state twice before getting into resumed state. And that cause a crash. So we need check controller is already disposed before dispose it.