Open bramp opened 1 year ago
Currently CameraX is not really working well on the emulator. Could you make a try with a real phone ?
Thanks. I don't have a real phone without a front facing camera :-(
But I guess the implication is a real phone should work? However quickly looking though the code, we should be able to detect how many cameras exist, and only display the switch button if there are more than one? Equally it seems possible up detect if there are front or back, and only ask for it if it exists?
Steps to Reproduce
Using camerawesome 2.0.0-dev.1 using the example:
it display the camera preview, and all the UI. When I click the switch camera button in the lower left, the widget hangs, and I get a error in the logs
Expected results
This device does not have a front camera. I would expect that button to not be displayed. Even if it's displayed it shouldn't break like it does.
Actual results
The camera hangs.
About your device
Your flutter version
Flutter 3.10.2 • channel stable • https://github.com/flutter/flutter.git Framework • revision 9cd3d0d9ff (12 days ago) • 2023-05-23 20:57:28 -0700 Engine • revision 90fa3ae28f Tools • Dart 3.0.2 • DevTools 2.23.1
The exception I see: