|
@@ -199,7 +199,7 @@ class IdCardScanController extends GetxController with WidgetsBindingObserver {
|
|
|
PromptBox.toast('Error: No cameras found.');
|
|
|
} else {
|
|
|
for (CameraDescription cameraDescription in _cameras) {
|
|
|
- if (cameraDescription.lensDirection == CameraLensDirection.front) {
|
|
|
+ if (cameraDescription.lensDirection == CameraLensDirection.back) {
|
|
|
await openNewCamera(cameraDescription);
|
|
|
lockCaptureOrientation();
|
|
|
update();
|