CameraDeepAR
CameraDeepAR copied to clipboard
Unable to switch CameraDirection back
We are able to switch camera direction to Front camera. However, not able to switch backward.
deepArController.switchCameraDirection(direction: CameraDirection.back);
this doesn't work.
@Hi99simon This is what I am using to switch the camera:
cameraDirection =
cameraDirection == CameraDirection.front
? CameraDirection.back
: CameraDirection.front;
_cameraDeepArController.switchCameraDirection(
direction: cameraDirection);
Wrap that into setState also
Thanks! I missed the setState. It is important to point it out. Thanks ;)