Skip to content

[Feature] Shooting can only generate vertical images #208

@shengdongwang

Description

@shengdongwang

Version information

  • Device: xiaomi 13
  • OS: Android 13
  • Package Version: v4.0.2
  • Flutter Version: v3.7.5

Is your feature request related to a problem?
During the shooting process, the system direction was locked, the phone turned 90 degrees, and the generated image remained vertical, which was not a good experience.

Describe the solution you'd like
I am trying to modify your plugin by adding a gyroscope. Based on the x, y, and z coordinates returned by the gyroscope, I can determine whether the phone is currently on a horizontal or vertical screen and has achieved the initial effect. Switching between horizontal and vertical screens on iOS phones can cause serious problems. With my current abilities, I am unable to optimize the iOS side, but it meets the basic requirements of Android. Can you try optimizing or developing it?

Describe alternatives you've considered
I use a gyroscope and RotatedBox layout to rotate the camera

Additional context
Using a gyroscope, add a RotatedBox layout outside of CameraPreview, and use the x, y, and z coordinate systems returned by the gyroscope to determine whether the screen is vertical or horizontal. The horizontal screen should be rotated 90 degrees clockwise or counterclockwise.

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