You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This always starts with the wide angle sensor. After looking at the source code, I updated defaultSensorType => SensorType.telephoto which kind of worked after switching camera from front to back, but initially the camera always loads with the wide angle sensor.
I see this issue opened which says lens switching is not implemented for android. But for my use case (to always start with primary camera), I forked the library and made some changes so that I can call setSensor immediately after the camera is initialised, to switch to telephoto lens which works well.
I am not sure if my phone has a telephoto sensor (most likely not) but anyway it should have used the primary sensor.
I don't know the behaviour in iOS as i don't have the device.
Steps to Reproduce
I am running this code
This always starts with the wide angle sensor. After looking at the source code, I updated
defaultSensorType => SensorType.telephoto
which kind of worked after switching camera from front to back, but initially the camera always loads with the wide angle sensor.I see this issue opened which says lens switching is not implemented for android. But for my use case (to always start with primary camera), I forked the library and made some changes so that I can call
setSensor
immediately after the camera is initialised, to switch to telephoto lens which works well.I am not sure if my phone has a telephoto sensor (most likely not) but anyway it should have used the primary sensor.
I don't know the behaviour in iOS as i don't have the device.
Expected results
It should start with a different camera sensor.
About your device
Your flutter version
Run this in your command line
flutter --version
The text was updated successfully, but these errors were encountered: