Using the latest version 0.8.1, is there a way to prevent orientation change? I have locked the device orientation using SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]); but if I rotate the device to landscape, the camera also attempts to rotate and the preview looks compressed. A good example would be the instagram camera, which is locked to portrait mode. If you rotate your device the preview doesn't move at all.
You can apply lock on capture orientation this will also used for app being crashed during camera initialisation
await _cameraController.initialize();
await _cameraController.lockCaptureOrientation();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With