[Feature] Shooting can only generate vertical images
Closed this issue · 0 comments
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.