mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 07:48:40 +00:00
fix #353
Some checks are pending
Flutter analyze & test / flutter_analyze_and_test (push) Waiting to run
Some checks are pending
Flutter analyze & test / flutter_analyze_and_test (push) Waiting to run
This commit is contained in:
parent
7007e7b063
commit
82f4c9af9f
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue