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

[Feature] Shooting can only generate vertical images #208

Closed
shengdongwang opened this issue Oct 13, 2023 · 0 comments · Fixed by #218
Closed

[Feature] Shooting can only generate vertical images #208

shengdongwang opened this issue Oct 13, 2023 · 0 comments · Fixed by #218
Labels
await investigate The issue is waiting for further investigation.

Comments

@shengdongwang
Copy link

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.

@shengdongwang shengdongwang added the await investigate The issue is waiting for further investigation. label Oct 13, 2023
@shengdongwang shengdongwang changed the title [Feature] Request a feature with something [Feature] Shooting can only generate vertical images Oct 13, 2023
AlexV525 added a commit that referenced this issue Oct 30, 2023
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

Successfully merging a pull request may close this issue.

1 participant