I'm using the camerAwesome package to create a custom camera app similar to Snapchat.
Unfortunately, this package has a "feature" where it automatically detects device rotation. For some reason, it captures landscape photos in portrait (this is reflected in the image data and in the saved Firebase image).
I am hoping to disable the device gyroscope to just not recognize the phone rotation at all. I don't need the gyroscope for anything in my app.
https://pub.dev/packages/camerawesome
https://docs.page/Apparence-io/camera_awesome
I've tried using the code copilot to disable the gyrometer or accelerometer but nothing worked. I tried looking up solutions online but none of those worked either.
Has anyone successfully disabled gyrometer rotation across an entire FlutterFlow app?
Disable Gyrometer Rotation, Set Accelerometer to 0
Custom Code
I tried implementing this action in the main.dart, but it just keeps the app from rotating โ it does not keep the camera functionality from rotating: await SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
I tried using the "enableRotation: false;" line from the cameraAwesome documentation, but could not get that to have any effect.
I've also contacted the creator of the camerAwesome package, and they were unable to help.
Yes
1