Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
std-s opened this issue Dec 4, 2024 · 1 comment
Open

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

std-s opened this issue Dec 4, 2024 · 1 comment
Labels
await investigate The issue is waiting for further investigation.

Comments

@std-s
Copy link

std-s commented Dec 4, 2024

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

@std-s std-s added the await investigate The issue is waiting for further investigation. label Dec 4, 2024
@springlo
Copy link

how to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
await investigate The issue is waiting for further investigation.
Projects
None yet
Development

No branches or pull requests

2 participants