We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6150f7b commit a2269c3Copy full SHA for a2269c3
1 file changed
packages/camera/camera/lib/src/camera_controller.dart
@@ -341,9 +341,10 @@ class CameraController extends ValueNotifier<CameraValue> {
341
_deviceOrientationSubscription ??= CameraPlatform.instance
342
.onDeviceOrientationChanged()
343
.listen((DeviceOrientationChangedEvent event) {
344
- if (!_isDisposed) {
345
- value = value.copyWith(deviceOrientation: event.orientation);
+ if (_isDisposed) {
+ return;
346
}
347
+ value = value.copyWith(deviceOrientation: event.orientation);
348
});
349
350
_cameraId = await CameraPlatform.instance.createCameraWithSettings(
0 commit comments