fix #353
Some checks are pending
Flutter analyze & test / flutter_analyze_and_test (push) Waiting to run

This commit is contained in:
otsmr 2025-12-26 08:20:42 +01:00
parent 7007e7b063
commit 82f4c9af9f

View file

@ -337,10 +337,10 @@ class _CameraPreviewViewState extends State<CameraPreviewView> {
return; return;
} }
if (Platform.isIOS) { if (mc.cameraController?.value.flashMode != FlashMode.off) {
// android has a problem with this. Flash is turned off in the pausePreview function.
await mc.cameraController?.setFlashMode(FlashMode.off); await mc.cameraController?.setFlashMode(FlashMode.off);
} }
if (!mounted) { if (!mounted) {
return; return;
} }