skip to Main Content

Camera permission exception on iOS in flutter project

I keep getting the following exception in flutter when I try to open the ReaderWidget of this example from the zxing library: [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: CameraException(channel-error, Unable to establish connection on channel: "dev.flutter.pigeon.camera_avfoundation.CameraApi.getAvailableCameras".) #0 AVFoundationCamera.availableCameras (package:camera_avfoundation/src/avfoundation_camera.dart:76:7) <asynchronous suspension> #1 _ReaderWidgetState.initStateAsync.<anonymous…

VIEW QUESTION

flutter camera not reinitializing on iOS

I need to use camera in two screens when one screen push another screen. In that case the camera shows black screen when I go back from second widget: import 'dart:async'; import 'package:camera/camera.dart'; import 'package:flutter/material.dart'; List<CameraDescription> cameras = []; late…

VIEW QUESTION
Back To Top
Search