Skip to content

[BUG] "lockCaptureOrientation" cannot be used. #286

@std-s

Description

@std-s

Describe the bug
When I set "lockCaptureOrientation: DeviceOrientation.portraitDown" and use the camera to take pictures in landscape orientation, the scene is wrong.

How to reproduce

final AssetEntity? entity = await CameraPicker.pickFromCamera(
      Get.context!,
      locale: Get.locale,
      pickerConfig: CameraPickerConfig(
        enableAudio: true,
        enableRecording: true,
        enableScaledPreview: false,
        maximumRecordingDuration: 60.seconds,
        lockCaptureOrientation: DeviceOrientation.portraitDown,
        onMinimumRecordDurationNotMet: () {
        },
      ),
    );

Steps to reproduce the behavior:

  1. Open the photo scene;
  2. Turn the phone horizontally;
  3. An error occurs in the scene.

Expected behavior
Can shoot horizontally normally.

Screenshots (If contains)
Screenshot 2024-12-04 at 5 06 30 PM

Version information

  • Device: iPhone 12 pro max
  • OS: 17.6
  • Package Version: 4.3.6
  • Flutter Version: 3.24.5

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    await investigateThe issue is waiting for further investigation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions