Skip to content

[camera_android] 0.10.9+5 breaks the preview's orientation #150549

@AlexV525

Description

@AlexV525

Steps to reproduce

  1. camera_android: 0.10.9+5
  2. Runs on a real device.
  3. Choose the back lens.
  4. The preview got rotated unexpectedly.

Roll back to v0.10.9+3 works as expected.

Expected results

The preview should follow its actual orientation (portrait up).

Actual results

The preview is rotated to landscape left.

Code sample

https://pub.dev/packages/camera_android/example

Screenshots or Video

0.10.9+3 ✅ 0.10.9+5 ❌
image image

Logs

N/A

Flutter Doctor output

[✓] Flutter (Channel stable, 3.22.2, on macOS 14.5 23F79 darwin-arm64 (Rosetta), locale zh-Hans-CN)
    • Flutter version 3.22.2 on channel stable at /Users/alex/dev/flutter-322
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 761747bfc5 (2 weeks ago), 2024-06-05 22:15:13 +0200
    • Engine revision edd8546116
    • Dart version 3.4.3
    • DevTools version 2.34.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: regressionIt was better in the past than it is nowfound in release: 3.22Found to occur in 3.22found in release: 3.23Found to occur in 3.23has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: cameraThe camera pluginpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-androidOwned by Android platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions