-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
I am working on a production app which I have convinced the company I currently work in to allow me to port it to Flutter and it was going all great till we did the first test only to notice that all images coming from the flutter app front-facing camera are rotated 270 degrees no matter the camera orientation.
A few to note is that by default the app is locked to portrait mode, there is no landscape mode. Also the front-facing camera is very key part of the apps process.
I am using the camera 0.2.1 in the app and whenever I take a picture with the front-facing camera and send to the server the image is rotated 270 degrees. even when I intentionally or manually give the jpeg rotation a const orientation.
I will very much appreciate all the help to get this resolved so the app can go live thanks
Logs
flutter doctor -v
[√] Flutter (Channel dev, v0.5.2, on Microsoft Windows [Version 10.0.17134.48], locale en-US)
• Flutter version 0.5.2 at M:\flutter
• Framework revision 0a26ac0970 (5 days ago), 2018-06-06 15:28:20 -0700
• Engine revision a83b37d35a
• Dart version 2.0.0-dev.60.0.flutter-a5e41681e5
[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at C:\Android\android-sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 27.0.3
• ANDROID_HOME = C:\Android\android-sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
• All Android licenses accepted.
[√] Android Studio (version 3.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 25.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
[√] VS Code, 64-bit edition (version 1.24.0)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 2.13.2
[√] Connected devices (1 available)
• SM T555 • 7779e875 • android-arm • Android 7.1.1 (API 25)
• No issues found!