Enguerrand_ARMINJON_MAC_2

bug/widget-disposed-during-start

## 5.0.2
Bugs fixed:
* Catch an exception that could appear if MobileScannerController is disposed during start(). [#1036](https://github.com/juliansteenbakker/mobile_scanner/pull/1036) (thanks @EArminjon !)
## 5.0.1
Improvements:
... ...
... ... @@ -274,6 +274,7 @@ class MobileScannerController extends ValueNotifier<MobileScannerState> {
options,
);
if (!_isDisposed) {
value = value.copyWith(
availableCameras: viewAttributes.numberOfCameras,
cameraDirection: effectiveDirection,
... ... @@ -284,6 +285,7 @@ class MobileScannerController extends ValueNotifier<MobileScannerState> {
// If it does not have one, provide the unavailable state directly.
torchState: viewAttributes.hasTorch ? null : TorchState.unavailable,
);
}
} on MobileScannerException catch (error) {
// The initialization finished with an error.
// To avoid stale values, reset the output size,
... ...
name: mobile_scanner
description: A universal barcode and QR code scanner for Flutter based on MLKit. Uses CameraX on Android, AVFoundation on iOS and Apple Vision & AVFoundation on macOS.
version: 5.0.1
version: 5.0.2
repository: https://github.com/juliansteenbakker/mobile_scanner
screenshots:
... ...