8000 [camera] plugin Cannot change flashMode to FlashMode.off in front camera · Issue #82627 · flutter/flutter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[camera] plugin Cannot change flashMode to FlashMode.off in front camera #82627
Closed
@II11II

Description

@II11II

When setFlashMode to FlashMode.off it throws errors
Test device: Samsung s9 android 10

I/flutter (19389): [setFlashModeFailed, Device does not have flash capabilities]
I/flutter (19389): [CameraException(setFlashModeFailed, Device does not have flash capabilities), #0      CameraController.setFlashMode (package:camera/src/camera_controller.dart:577:7)
I/flutter (19389): <asynchronous suspension>
I/flutter (19389): #1      _AppCameraState.setFlashMode (package:yool/app/presentation/page/camera/app_camera.dart:482:7)
I/flutter (19389): <asynchronous suspension>
I/flutter (19389): #2      _AppCameraState.cameraButtons.<anonymous closure>.<anonymous closure> (package:yool/app/presentation/page/camera/app_camera.dart:319:20)
I/flutter (19389): <asynchronous suspension>
I/flutter (19389): ]

camera: ^0.8.1

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.5, on macOS 11.3 20E232 darwin-arm, locale
    ru-UZ)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2020.3.2)
[✓] VS Code (version 1.56.0)
[✓] Connected device (3 available)
    ! Error: iPhone is not connected. Xcode will continue when iPhone is
      connected. (code -13)

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0